• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

How to invoke jpanels

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys

I'm having a problem regarding Jpanels so I don't know how to invoke more JPanels separately actually one by one on the same Jframe I'm dealing with 15+ jpanels so it's really helpful to me

Thank you
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's the problem?
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
> ...I don't know how to invoke more JPanels separately actually one by one on the same Jframe...

use a CardLayout?
 
Pubudu Dissanayake
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
actually I want to hide jpanels , I'm dealing with a large registration form so it has 15+ jpanels if someone refer that form(frame) it so complicated .please consider about my problem

Thank you
 
Darryl Burke
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. Did you read the CardLayout documentation yet?

2. Further recommended reading: How to ask questions the smart way
 
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm the Considerator.

You can create each JPanel object separately, and add components to it, and you can change JPanel objects in one JFrame with setContentPane( paneObject ), after which it is good to call revalidate.

I advice you to read about panes in Swing Tutorial, like for example,
http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/uiswing/components/rootpane.html
How to use RootPanes

But I think CardLayout solves the problem, no?

 
Sheriff
Posts: 22850
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Petar Tomičić wrote:I'm the Considerator.


Is that a relative of the Terminator?
 
Petar Thomas
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that Considerator isn't Spanish, but I'm not sure.
 
Pubudu Dissanayake
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you guys
 
reply
    Bookmark Topic Watch Topic
  • New Topic