Java Swing Tutorial 22 - JTabbedPane in Netbeans Java - Part 2

preview_player
Показать описание
Title : Netbeans Java Tutorial 22 - JTabbedPane in Netbeans Java - Part 2

IDE : NetBeans IDE lets you quickly and easily develop Java desktop, mobile, and web applications
Netbeans have so many built in plugins by which you can perform many operations and tasks

INTRODUCTION TO JTABBEDPANE

To create a tabbed pane, instantiate JTabbedPane, create the components you wish it to display,
and then add the components to the tabbed pane using the addTab method

JTabbedPane() : Creates a tabbed pane.

addTab(String, Icon,
Component)
addTab(String,
Component) - Adds a new tab to the tabbed pane. The first argument specifies the
text on the tab. The optional icon argument specifies the tab's icon.
The component argument specifies the component that the tabbed
pane should show when the tab is selected.
Рекомендации по теме
Комментарии
Автор

Can we make a jbutton on first tab that on clicking opens the second tab? If yes. please tell the code for that.

azeemshah
visit shbcf.ru