Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.JPanel;
- import javax.swing.BorderFactory;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.awt.GridBagConstraints;
- import java.awt.GridBagLayout;
- import java.awt.Insets;
- import javax.swing.JLabel;
- /**
- * @author Administrator
- * @created November 19, 2018
- */
- class Panel0 extends JPanel implements ActionListener
- {
- JLabel lbLabel_login;
- /**
- *Constructor for the Panel0 object
- */
- public Panel0()
- {
- super();
- GridBagLayout gbPanel0 = new GridBagLayout();
- GridBagConstraints gbcPanel0 = new GridBagConstraints();
- setLayout( gbPanel0 );
- lbLabel_login = new JLabel( "Login" );
- gbcPanel0.gridx = 12;
- gbcPanel0.gridy = 5;
- gbcPanel0.gridwidth = 5;
- gbcPanel0.gridheight = 2;
- gbcPanel0.fill = GridBagConstraints.BOTH;
- gbcPanel0.weightx = 1;
- gbcPanel0.weighty = 1;
- gbcPanel0.anchor = GridBagConstraints.CENTER;
- gbPanel0.setConstraints( lbLabel_login, gbcPanel0 );
- add( lbLabel_login );
- }
- /**
- */
- public void actionPerformed( ActionEvent e )
- {
- }
- }
- Panel0 pnPanel0;
- pnPanel0 = new Panel0();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement