Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Oct 18th, 2007, 2:25 PM   #1
Wizard1988
Professional Programmer
 
Wizard1988's Avatar
 
Join Date: Oct 2005
Location: Chitown
Posts: 417
Rep Power: 3 Wizard1988 is on a distinguished road
Send a message via AIM to Wizard1988
Visible area insize JFrame

I am writing a program where I need to display a grid(16,16) separated by 4 pixels. I draw the pixels on a BufferedImage and then draw that inside a JPane. My problem is that I can never get the JFrame size right. How do I go about creating a JFrame which contains a JPane(400pixels by 400 pixels). I know this problem is because of the Title Bar of the JFrame, however I am not sure how I would fix this.

Does anyone have any ideas of how I can get this accomplished??
Attached Images
File Type: jpg target.JPG (5.7 KB, 22 views)
__________________
JG-Webdesign
Wizard1988 is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
adding Flash area Simongcc Community Announcements and Feedback 4 Aug 16th, 2007 11:23 PM
Can't resize my JFrame. Intimidat0r Java 4 Mar 15th, 2007 3:05 PM
Python area calculator Volkan Python 20 Feb 4th, 2006 9:11 AM
Rectangle in EAST is partially visible susam_pal Java 0 Sep 30th, 2005 12:44 AM
Area and Perimeter Dark Flare Knight Java 17 May 17th, 2005 10:49 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:16 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC