1 package demo; 2 3 4 public class Logo { 5 6 public Logo() { 7 8 29 swingwtx.swing.JFrame wtFrame = new swingwtx.swing.JFrame(); 31 wtFrame.getContentPane().setLayout(new swingwt.awt.BorderLayout()); 32 swingwtx.swing.JLabel wtLabel = new swingwtx.swing.JLabel("SwingWT"); 33 wtLabel.setFont(new swingwt.awt.Font("Dialog", swingwt.awt.Font.BOLD + swingwt.awt.Font.ITALIC, 36)); 34 wtFrame.getContentPane().add(wtLabel, swingwt.awt.BorderLayout.CENTER); 35 wtFrame.setSize(640, 480); 36 wtFrame.show(); 37 while(true){ 38 try { 39 Thread.sleep(1000); 40 } catch (InterruptedException e) { 41 e.printStackTrace(); 43 } 44 } 45 46 } 47 48 49 public static void main(String [] args) { 50 new Logo(); 51 } 52 } 53 | Popular Tags |