import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class Main extends JFrame {
JButton b = new JButton("NEW");
private Container contentPane;
public Main() {
setTitle("14_3");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
contentPane = getContentPane();
create();
//setSize(9500, 8740);
setSize(400, 200);
setVisible(true);
}
private void create() {
}
public static void main(String[] args) {
new Main();
}
}
/*
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class Main extends JFrame {
JButton b = new JButton("NEW");
private Container contentPane;
public Main() {
setTitle("14_3");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
contentPane = getContentPane();
create();
//setSize(9500, 8740);
setSize(400, 200);
setVisible(true);
b.setToolTipText("New File");
}
private void create() {
JToolBar tb = new JToolBar("Tool Bar");
tb.setBackground(Color.lightGray);
tb.add(b);
tb.addSeparator();
tb.add(new JLabel("Screen"));
tb.add(new JTextField());
contentPane.add(tb);
}
public static void main(String[] args) {
new Main();
}
}
*/



