Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JViewPorts Client not refreshed

Reply
Thread Tools

JViewPorts Client not refreshed

 
 
Joana
Guest
Posts: n/a
 
      11-28-2003
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
 
Reply With Quote
 
 
 
 
Joana
Guest
Posts: n/a
 
      12-07-2003
hello,

I have tried to solve my problem again...
I found 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display BindData() not refreshed automaticly RSusanto ASP .Net 1 03-08-2005 12:35 PM
Chart not getting refreshed Newbie ASP .Net 0 12-17-2004 11:55 AM
Pages are not refreshed on client machines R.D.CHETTY ASP General 1 06-22-2004 01:18 PM
Datagrid - can that be refreshed via client side javascript? James Radke ASP .Net Web Controls 4 11-14-2003 01:59 PM
Page not refreshed when DropDownList is opened Alfons Puig ASP .Net 0 08-28-2003 03:36 PM



Advertisments