1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
| import javax.swing.SwingUtilities;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JFrame;
import java.awt.Dimension;
import javax.swing.JTabbedPane;
import java.awt.Rectangle;
import javax.swing.JRadioButton;
import javax.swing.JCheckBox;
import java.awt.CardLayout;
import java.awt.GridLayout;
import java.awt.GridBagLayout;
import java.awt.FlowLayout;
import javax.swing.JButton;
public class azer extends JFrame {
private static final long serialVersionUID = 1L;
private JPanel jContentPane = null;
private JTabbedPane jTabbedPane = null;
private JTabbedPane jTabbedPane1 = null;
private JTabbedPane jTabbedPane2 = null;
private JTabbedPane jTabbedPane3 = null;
private JButton jButton = null;
/**
* This method initializes jTabbedPane
*
* @return javax.swing.JTabbedPane
*/
private JTabbedPane getJTabbedPane() {
if (jTabbedPane == null) {
jTabbedPane = new JTabbedPane();
jTabbedPane.setBounds(new Rectangle(1, 1, 663, 283));
jTabbedPane.addTab(null, null, getJTabbedPane1(), null);
jTabbedPane.addTab(null, null, getJTabbedPane2(), null);
jTabbedPane.addTab(null, null, getJTabbedPane3(), null);
}
return jTabbedPane;
}
/**
* This method initializes jTabbedPane1
*
* @return javax.swing.JTabbedPane
*/
private JTabbedPane getJTabbedPane1() {
if (jTabbedPane1 == null) {
jTabbedPane1 = new JTabbedPane();
jTabbedPane1.addTab(null, null, getJButton(), null);
}
return jTabbedPane1;
}
/**
* This method initializes jTabbedPane2
*
* @return javax.swing.JTabbedPane
*/
private JTabbedPane getJTabbedPane2() {
if (jTabbedPane2 == null) {
jTabbedPane2 = new JTabbedPane();
}
return jTabbedPane2;
}
/**
* This method initializes jTabbedPane3
*
* @return javax.swing.JTabbedPane
*/
private JTabbedPane getJTabbedPane3() {
if (jTabbedPane3 == null) {
jTabbedPane3 = new JTabbedPane();
}
return jTabbedPane3;
}
/**
* This method initializes jButton
*
* @return javax.swing.JButton
*/
private JButton getJButton() {
if (jButton == null) {
jButton = new JButton();
}
return jButton;
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
SwingUtilities.invokeLater(new Runnable() {
public void run() {
azer thisClass = new azer();
thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
thisClass.setVisible(true);
}
});
}
/**
* This is the default constructor
*/
public azer() {
super();
initialize();
}
/**
* This method initializes this
*
* @return void
*/
private void initialize() {
this.setSize(673, 319);
this.setContentPane(getJContentPane());
this.setTitle("JFrame");
}
/**
* This method initializes jContentPane
*
* @return javax.swing.JPanel
*/
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(null);
jContentPane.add(getJTabbedPane(), null);
}
return jContentPane;
}
} // @jve:decl-index=0:visual-constraint="10,10" |
Partager