• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to implement this layout plan?

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the blue box, I have a CustomerPanel,
Within it, there is a DetailPane, in which the upper part is the customer particulars panel
and the lower part is the customer contact panel.
On the right, there is the button panel

First, I'd like to reuse a GenericCustomerPanel like this


Next, I derived this Panel and add the button Panel to it

However, the button panel never appears, any ideas why?
Thanks
Jack
Layout plan.png
[Thumbnail for Layout plan.png]
 
K. Tsang
Bartender
Posts: 3604
16
Firefox Browser Java Mac OS X
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see you are using GroupLayout. Since I'm not familiar with GroupLayout, you can achieve the same with BorderLayout for the JPanels.

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello K Tsang,
Is it possible to split the Top Panel into two parts, the very top part is just the banner and center part is the hints of where
the screen the user is at.

where omniTopPanel is just the Top Banner, I have run out of namespace...
the topPanel is the logo of the application.
navPane is just another banner of showing where the user is at
In the code snippet above, I can't see the navPane.
Thanks
Jack

 
m Korbel
Ranch Hand
Posts: 174
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
- use JSplitPane

- hide divider

- all changes with divider its possitioning , etc must be wrapped into invokeLater (on the apps startup too)
 
K. Tsang
Bartender
Posts: 3604
16
Firefox Browser Java Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use JSplitPane. Or use JPanels to layout the content like the "contentPane" in my previous coding.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!