Created
October 17, 2012 00:08
Revisions
-
Geovane Rocha revised this gist
Oct 17, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public void criaJanela() public static void main(String[] args) { main Frame = new main(); Frame.criaJanela(); } } -
Geovane Rocha revised this gist
Oct 17, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ public class main extends JFrame { JPanel panel; JLabel msg; public main() -
Geovane Rocha created this gist
Oct 17, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,38 @@ import java.awt.BorderLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; public class main extends JFrame { JPanel panel; JLabel msg; public main() { super("JAVA SWING, AWT"); } public void criaJanela() { panel = new JPanel(); msg = new JLabel("Testando aplicação gráfica com Java"); panel.add(msg); panel.setSize(500,500); getContentPane().add(panel, BorderLayout.CENTER); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); pack(); setVisible(true); } public static void main(String[] args) { main s = new main(); s.criaJanela(); } }