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

Tip: Looking for answers? Try searching our database.

JViewPorts Client not refreshed

Thread view: 
Joana - 02 Dec 2003 08:42 GMT
hello,

I please for some help in following problem...

Starting point:
JScrollPane scrollPane = new JScrollPane();
scrollPane.setPreferredSize(new Dimension(500,450));

//viewClient has got a computed mathematical grafic
JComponent viewClient = myExternLibrary.getJComponent();
scrollPane.setViewportView(viewClient);

Result:
There is a piece of the mathematical grafic(left,top piece) in the
programwindow. It is all ok.

For example:

   scrollPane:
|--------------|
|              |
|           ---|
|           \  |
|            \ |
|             \|
|              |
|<============>|
    (horizontal JScrollBar )

Problem:
If I have manipulated the visible area with buttons,all has been ok.
But if I have manipulated with knob, the JViewPort has refreshed incompletely.

for example:

I pull knob on the right and allways become(a picture). But b Picture
is korrectly.

(a picture)                 (b picture)
  scrollPane:                
|---------------|         |---------------|
|               |         |            ###|
|        --- ---|         |        ---    |
|        \   \  |         |        \      |
|         \   \ |         |         \     |
|          \   \|         |          \    |
|               |         |            ###|
|<=============>|         |<=============>|

Thanks for any help!!

best regards,
Joana
Joana - 07 Dec 2003 17:13 GMT
hello,

I have tried to solve my problem again...
I found the one strange feature:

For example, my JComponent, he's a client of JViewPort, has a size
(width,height).
When I set jscrollpane.setPreferredSize(800,800), there isn't any
problem.
But, when I set the size (300,300), I get the same problem from my
first posting again.

I can not understand it! If somebody has any ideas, please help...
thanks,

Joana


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



©2009 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.