2

I have 3 separate GUIs that perform independent functions:

  • ConverterGUI
  • TransformerGUI
  • GenerationGUI

How can I combine them together in such a way that they would look like tabs?

1 Answer 1

6

Use a JTabbedPane See How to Use Tabbed Panes for details.

tabbed pane

12
  • maybe CardLayout and with JMenu could be an alternative
    – mKorbel
    Aug 24, 2012 at 8:16
  • @mKorbel Mmmm.. not convinced when the question states "look like tabs", but maybe I am presuming too much. It is me that expanded the tags from just java ( which might show how much presuming I did on that answer ;). Aug 24, 2012 at 8:23
  • 1
    @lee yes no problem, no issue with that, Cardlayout and JTabbedPane
    – mKorbel
    Aug 24, 2012 at 8:30
  • @Andrew Thompson :-), :-), :-)
    – mKorbel
    Aug 24, 2012 at 8:30
  • 1
    @lee: I find Andrew's advice helpful, and I frequently post the results here, for example. See also this Q&A.
    – trashgod
    Aug 24, 2012 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.