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 / August 2003

Tip: Looking for answers? Try searching our database.

How to get an extensive JScrollPane/JPanel

Thread view: 
ithaca - 22 Aug 2003 04:27 GMT
Hey all ,

I have a drawPanel class which extends from JPanel.
I am drawing graph on this drawPanel. I put this drawPanel into a
JScrollPane. But what should I do to make the drawPanel's size getting
bigger while I draw more on it? I found some suggestion online which said I
should  write a component listener for drawPanel. But I still can't figure
out how it works.

Any help? Thanks in advance!!!
Christian Kaufhold - 23 Aug 2003 11:57 GMT
Hello!

> I have a drawPanel class which extends from JPanel.
> I am drawing graph on this drawPanel. I put this drawPanel into a
> JScrollPane. But what should I do to make the drawPanel's size getting
> bigger while I draw more on it? I found some suggestion online which said I
> should  write a component listener for drawPanel. But I still can't figure
> out how it works.

The preferred size of the panel must be the size it wants to be.

Christian


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.