J
Joana
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
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