List of usage examples for javax.swing JFrame show
@Deprecated public void show()
From source file:MessageDigestTest.java
public static void main(String[] args) { JFrame f = new MessageDigestFrame(); f.show(); }
From source file:Highlights.java
public static void main(String[] args) { JFrame f = new JFrame(); f.getContentPane().add(new Highlights()); f.setSize(850, 250);// ww w.ja v a2 s . co m f.show(); }
From source file:Main.java
public static void main(String[] args) { JEditorPane jep = new JEditorPane(); jep.setEditable(false);/*from w w w.j a v a 2 s.c o m*/ try { jep.setPage("http://www.google.com"); } catch (IOException e) { jep.setContentType("text/html"); jep.setText("<html>Could not load http://www.google.com </html>"); } JScrollPane scrollPane = new JScrollPane(jep); JFrame f = new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.getContentPane().add(scrollPane); f.setSize(512, 342); f.show(); }
From source file:Main.java
public static void main(String[] args) { JPanel panel = new JPanel(new BorderLayout()); final JTree tree = new JTree(); panel.add(new JScrollPane(tree)); JButton btn = new JButton("Press Me"); btn.addActionListener(et -> {/*from ww w . ja v a2 s . c o m*/ for (Enumeration e = ((TreeNode) tree.getModel().getRoot()).children(); e.hasMoreElements();) { TreeNode tn = (TreeNode) e.nextElement(); tree.expandPath(new TreePath(((DefaultTreeModel) tree.getModel()).getPathToRoot(tn))); } }); panel.add(btn, BorderLayout.SOUTH); JFrame frame = new JFrame(""); frame.getContentPane().add(panel); frame.setSize(300, 300); frame.setLocation(100, 100); frame.pack(); frame.show(); }
From source file:TransformScale.java
public static void main(String[] a) { JFrame f = new JFrame(); f.getContentPane().add(new TransformScale()); f.setSize(650, 550);//from ww w. j a v a 2s .c o m f.show(); }
From source file:TransformShear.java
public static void main(String[] a) { JFrame f = new JFrame(); f.getContentPane().add(new TransformShear()); f.setSize(450, 350);//from w w w . j av a2s.c o m f.show(); }
From source file:TransformTranslation.java
public static void main(String[] a) { JFrame f = new JFrame(); f.getContentPane().add(new TransformTranslation()); f.setSize(450, 350);/*from w w w. ja v a2 s .c o m*/ f.show(); }
From source file:TransformersRotation.java
public static void main(String[] a) { JFrame f = new JFrame(); f.getContentPane().add(new TransformersRotation()); f.setSize(350, 200);// ww w. ja v a 2s . c om f.show(); }
From source file:TransformTransRotation.java
public static void main(String[] a) { JFrame f = new JFrame(); f.getContentPane().add(new TransformTransRotation()); f.setSize(450, 350);/*from w w w . ja v a 2 s. co m*/ f.show(); }
From source file:TransformTranslatedRotation.java
public static void main(String[] a) { JFrame f = new JFrame(); f.getContentPane().add(new TransformTranslatedRotation()); f.setSize(450, 350);/*from w ww.ja v a 2 s .co m*/ f.show(); }