File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
JScrollPane and JPanel in JSplitPane(Nested)
Thanga prakash Somasundaram
Joined: Feb 07, 2003
Jun 10, 2005 00:17:00
| | |
| | N1 |
| | |
| M1 |===========|
| | P1 | P2 |
| | | |
I have a Frame, which has
(S) with horizontal split has M1 and M2.
M1 is Panel.
M2 which is JSplitpane with Veritical Split has N1 and N2.
N2 Which is
with Horizontal Split has P1 and P2.
Proper DividerLocation(int) are set accordingly.
The component M1,P1 and P2 can dynamically added/removed from their splitpane.
All these components has setMinimumSize().
I removed P1 and P2 and subsequently N2 removed.
I removed M1 also.
Now, When I add N2 with P1 alone. JSplitpane N2 is not repainting properly.
The size of P1 is below the setMinimumSize().
some action on P1 / delay, P1 resizes properly in the N2.
I tried validate and repaint for N2. Still, It remains the same.
This issue is not found while the order of removing as M1, P1 and P2.
Is any thing to be taken care for
Please! help me for the same.
by,<br />stp<br /> <br />Have a Nice Day...
I agree. Here's the link:
subject: JScrollPane and JPanel in JSplitPane(Nested)
Haw to separate a frame to diferent fraims
Doubt about StringTokenizer !!
calling paint from another class
Lines disappear when scrolling
Problem with JSplitPane vertical split
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014