Adding a button component to a java tabbed pane in java

后端 未结 2 651
误落风尘
误落风尘 2021-01-23 09:05

i am trying to create GUI using java swings.I am just a beginner in java swings. My primary idea was to create two tabs and add a button in one of the tabs.

I wanted to

2条回答
  •  生来不讨喜
    2021-01-23 09:54

    I'm not sure I understand your intent, but you might try the approach shown in the TabComponentsDemo, discussed in How to Use Tabbed Panes: Tabs With Custom Components.

    A related example is shown here.

提交回复
热议问题