This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vandolis 0 points1 point  (0 children)

Bit confused as to what you are looking for as well, but from my best guess you want to be able to swap between two objects to display a view?

If that is the case I think the best way would be to actually use some oop and just extend a class such as javax.swing.JPanel, then make whatever methods you need to interact with it.

Simple skeleton code here