Go Back   Java Programming Forums > Java Standard Edition Programming Help > AWT / Java Swing


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-03-2009, 04:18 AM
Junior Member
 

Join Date: Mar 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
jlobe is on a distinguished road
Question Missing pieces of components (JFileChooser, JButtons, etc) help?

The normal window in the GUI i'm working on, works fine. When i bring up a new NetFrame (e.g. preferences) the components aren't drawn completely. None of the 3 buttons show up, a few check boxes in a tabbed pane show up (not all of them), etc. When i click where a button should be, it appears. When i switch to the other tab in the pane, its contents appear (except for a small missing bottom right corner of the border for a jtextarea), and when i switch back to the first tab, all of its contents appear. When i resize the panel, everything shows up.
I've tried calling validate, revalidate, validateTree, repaint, show, pack, none of them do anything (pack rearranges things, but nothing new appears).

I'm completely out of ideas!

A previous version of the program works fine, so it is something wrong with my code (i.e. not my computer / packages etc).

The thing that really stumps me, is that a JFileChooser appears incomplete -- only showing the file browser section, and the okay button (missing cancel button, and borders etc).

I'm sorry i don't have any sample code to show, there too much to put it all, and i have no idea where the problem is.
I'd appreciate any help or direction you have. THANKS!



Reply With Quote Share this thread on Facebook
Sponsored Links
Java Training from DevelopIntelligence
  #2 (permalink)  
Old 06-03-2009, 12:18 PM
JavaPF's Avatar
mmm.. coffee
 
8 Highscores

Join Date: May 2008
Location: United Kingdom
Posts: 1,543
Thanks: 98
Thanked 92 Times in 85 Posts
JavaPF is someone you want to know!JavaPF is someone you want to know!JavaPF is someone you want to know!

I'm feeling Relaxed
Default Re: Missing pieces of components (JFileChooser, JButtons, etc) help?

Hello jlobe and welcome to the Java Programming Forums.

Could you please attach a screen shot for me to look at?
__________________
Don't forget to add syntax highlighted code tags around your code: [highlight=Java] code here [/highlight]

Forum Tip: Add to peoples reputation () by clicking the button on their useful posts.
Reply With Quote
  #3 (permalink)  
Old 06-03-2009, 07:00 PM
Junior Member
 

Join Date: Mar 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
jlobe is on a distinguished road
Default Re: Missing pieces of components (JFileChooser, JButtons, etc) help?

Great idea; gladly!

Attached are examples of what the prefernces frame and JFileChooser should look like, and do look like.

Additional info:
System:
Running on a MacBook Pro OSX 10.5.6
Java:
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
Attached Images
File Type: jpg Picture 2.jpg (5.5 KB, 1 views)
File Type: jpg Picture 3.jpg (8.7 KB, 0 views)
File Type: jpg Picture 6.jpg (11.9 KB, 0 views)
File Type: jpg Picture 4.jpg (13.1 KB, 0 views)
Reply With Quote
Reply

Tags
incomplete components, missing components, swing

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
Trackbacks are On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
What am I missing in my code? Lizard What's Wrong With My Code? 1 17-05-2009 12:49 AM
[SOLVED] What am I missing? Lizard What's Wrong With My Code? 1 14-05-2009 05:33 PM


100 most searched terms
Search Cloud
2 dimensional arraylist java 2d arraylist java actionlistener actionlistener in java addactionlistener addactionlistener java convert double to integer java double format java double to integer in java double to integer java drag en drop programmeren java eclipse shortcut keys exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double in java format double java get mouse position java java 2d arraylist java actionlistener java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java programming practice problems java send keystrokes to another application java two dimensional arraylist java.io.ioexception: premature eof java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton action jbutton actionlistener jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics smack api two dimensional arraylist two dimensional arraylist java unable to sendviapost to url what is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?

All times are GMT. The time now is 02:06 AM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.