• 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

How to implement this layout plan?

 
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Likes 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 174
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3648
16
Android Mac OS X Firefox Browser Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use JSplitPane. Or use JPanels to layout the content like the "contentPane" in my previous coding.
reply
    Bookmark Topic Watch Topic
  • New Topic