You are on page 1of 6

import javax.swing.

*;

import java.awt.*;

import java.awt.event.*;

public class TabbedPaneDemo extends JApplet{

JTabbedPane jtp;

JButton b1,b2,b3;

ImageIcon i1;

public void init()

Container c = getContentPane();

c.setLayout(null);

jtp = new JTabbedPane(JTabbedPane.TOP);

jtp.addTab(General,new General());

jtp.addTab(Compatibility,new Compatiblity());

jtp.addTab(Shortcuts,new Shortcuts());

c.add(jtp);

jtp.setBounds(20,20,400,400);

b1=new JButton(OK);

b1.setBounds(90,430,80,30);

b2=new JButton(CANCEL);

b2.setBounds(180,430,80,30);

b3=new JButton(APPLY);

b3.setBounds(270,430,80,30);

c.add(b1);

c.add(b2);

c.add(b3);

}
class General extends JPannel {

General()

this.setLayout(null);

JTextField tf1=new JTextField(20);

tf1.setText(Netbeans IDE 7.2.1);

tf1.setBounds(25,25,150,20);

ImageIcon i1 = new ImageIcon(net.png);

JLabel jl1 = new JLabel(,i1,JLabel.CENTER);

Jl1.setBounds(25,245,100,100);

JLabel I1 =new JLabel(Type of File:);

I1.setBounds(25,35,80,30);

JLabel I2 = new JLabel(Shortcut(.Ink));

I2.setBounds(125,35,80,30);

JLabel I3 = new JLabel(Size:);

I3.setBounds(35,65,80,30);

JLabel I4 = new JLabel(2.00 KB);

I4.setBounds(125,65,80,30);

JLabel I5 = new JLabel(Created:);

I5.setBounds(35,95,80,30);

JLabel I6 = new JLabel(Wednesday,December 21,2016,4:02:43 PM);

I6.setBounds(125,95,280,30);

JLabel I7 = new JLabel(Modified);

I7.setBounds(40,130,80,30);

JLabel I8 = new JLabel(Wednesday,December 21,2016,4:02:43 PM);

I8.setBounds(125,35,280,30);

JLabel I11 = new JLabel(Attributes:);

I11.setBounds(45,160,80,30);
JCheckBox jb1 = new JCheckBox(Read-Only);

Jb1.setBounds(125,160,150,30);

JCheckBox jb2 = new JCheckBox(Hidden);

Jb1.setBounds(125,200,100,30);

add(tf1);

add(I1);

add(I2);

add(I3);

add(I4);

add(I5);

add(I6);

add(I7);

add(I8);

add(I11);

add(jb1);

add(jb2);

add(jl1);

JButton b1=new JButton(Advanced..);

B1.setBounds(130,255,100,40);

add(b1);

class Compatibility etends JPanel

{ Compatibility()

this.setLayout(null);

JLabel I1=new JLabel(Settings);

add(l1);
l1.setBounds(30,30,80,80);

JCheckBox jb1 = new JCheckBox(Run in 256 colors);

add(jb1);

jb1.setBounds(30,60,150,30);

JCheckBox jb2 = new JCheckBox(Run in 640*480 screen resolution);

add(jb2);

jb2.setBounds(30,90,250,30);

JCheckBox jb3 = new JCheckBox(Diable visual themes);

add(jb3);

jb3.setBounds(30,120,150,30);

JCheckBox jb4 = new JCheckBox(Diable Desktop Composotion);

add(jb4);

jb4.setBounds(30,150,150,30);

JLabel lb2 = new JLabel(Privilege Level);

add(lb2);

lb2.setBounds(30,180,150,30);

JCheckBox jb5 = new JCheckBox(Run this program as administrator);

add(jb5);

jb5.setBounds(30,210,150,30);

JButtonb1=new JButton(Chrge settings for all users);

B1.setBounds(30,240,200,30);

add(b1);

class Shortcuts extends JPanel

{ Shortcuts()

{ this.setLayout(null);

JLabel l1=new JLabel(Target Type);


l1.setBounds(25,30,80,30);

JLabel l2=new JLabel(Application);

l2.setBounds(110,30,100,30);

add(l1);

add(l2);

JLabel l13 = new JLabel(Shortcut Key);

l13.setBounds(25,80,80,30);

JTextField tf2=new JTextField(20);

tf2.setText(None);

tf2.setBounds(110,80,150,30);

JLabel l14=new JLabel(Run);

l14.setBounds(25,140,80,30);

JComboBox cb1 = new JComboBox();

cb1.addItem(Normal Window);

cb1.addItem(Minimized);

cb1.addItem(Maximized);

JLabel l15=new JLabel(omment:);

l15.setBounds(30,200,80,30);

JTextField tf3 = new JTextField(20);

tf3.setText(The smarter Way to code);

tf3.setBounds(30,240,150,30);

add(l13);

add(tf2);

add(l14);

add(cb1);

add(l15);

add(tf3);

add(b4);
}

/*applet code=TabbedPaneDemo height=400 width=400>

*</applet>

**/

You might also like