Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / March 2005

Tip: Looking for answers? Try searching our database.

New to Java, please help

Thread view: 
Dino Buljubasic - 10 Mar 2005 18:01 GMT
Hi
I am quite new to java so this question is probably easy :)
Please help

I have a frame that holds north center and south panels
-norht panel has a JComboBox
-center panel holds a JScrollBar that holds a panel that is
dynamically loaded when a combo box item is selected.

my question is how do I make my frame redraw itself each time
a combo box has been clicked, or a new selection in combo box has been
made and as a result new center panel with dynamically loaded controls
has been created?

So far, when I click on my combo to open it  but do not change
selected item then click again to close it, the region of frame that
was covered with its drop down list is not redrawn.

Also, the labels and text fields loaded seam to be not redrawn
properly.  Say when I maximize my frame and then minimize it, some
labels dissapear.  I am using GridBagLayout for this components to be
displayed
Praveen homkar - 11 Mar 2005 12:41 GMT
check repaint() method.

whenever u select from combo

after dynamically creating the panel

use centerPanel.rePaint()
and also

frame.rePaint()


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.