• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JScrollPane and JPanel in JSplitPane(Nested)

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

Window Organisation:
~~~~~~~~~~~~~~~~~~~~
===================
| | |
| | N1 |
| | |
| M1 |===========|
| | P1 | P2 |
| | | |
===================

I have a Frame, which has JSplitPane(S) with horizontal split has M1 and M2.

M1 is Panel.
M2 which is JSplitpane with Veritical Split has N1 and N2.

N1 is JTabbedPane.
N2 Which is JSplitPane with Horizontal Split has P1 and P2.

P1 is JScrollPane with a JTable
P2 is JPanel.

Proper DividerLocation(int) are set accordingly.

Problem
~~~~~~~
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 JScrollPane and JPanel in JSplitPane.

Please! help me for the same.
reply
    Bookmark Topic Watch Topic
  • New Topic