aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes can i create a jpanel from an existing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "can i create a jpanel from an existing " Watch "can i create a jpanel from an existing " New topic
Author

can i create a jpanel from an existing

phooton misra
Ranch Hand

Joined: Jul 31, 2012
Posts: 47

kindly somebody suggest me

can i create a jpanel grpm an existing ?
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

can i create a jpanel grpm an existing ?

What? And what's "grpm"?


The quieter you are, the more you are able to hear.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
grpm (from?)

from an existing (what)?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39409
    
  28
Do you mean can you subclass JPanel to create a special‑purpose panel? If so, yes.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19720
    
  20

Do you mean can you take an existing JPanel and make a copy of it, including fields? Not without quite a bit of coding. You'd have to recreate each nested component. You can of course delegate that work to a utliity method / class or to a special sub class.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
phooton misra
Ranch Hand

Joined: Jul 31, 2012
Posts: 47

Somebody please suggest me how can i copy a jpanel from another jpanel?
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1085
    
  10

phooton misra wrote:Somebody please suggest me how can i copy a jpanel from another jpanel?


Rob already did:
Rob Spoor wrote:Do you mean can you take an existing JPanel and make a copy of it, including fields? Not without quite a bit of coding. You'd have to recreate each nested component. You can of course delegate that work to a utliity method / class or to a special sub class.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can i create a jpanel from an existing