예제 #1
0
 public static void main(String[] argv) {
   try {
     String os = System.getProperty("os.name");
     if (os.startsWith("Windows")) {
       String laf = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
       UIManager.setLookAndFeel(laf);
     } else {
       UIManager.put("swing.boldMetal", Boolean.FALSE);
       javax.swing.plaf.FontUIResource f =
           new javax.swing.plaf.FontUIResource("SansSerif", Font.PLAIN, 11);
       java.util.Enumeration keys = UIManager.getDefaults().keys();
       while (keys.hasMoreElements()) {
         Object key = keys.nextElement();
         Object value = UIManager.get(key);
         if (value instanceof javax.swing.plaf.FontUIResource) UIManager.put(key, f);
       }
     }
     UIManager.put("TitledBorder.titleColor", Color.blue);
   } catch (java.lang.Exception exc) {
   }
   VncViewer viewer = new VncViewer(argv);
   viewer.start();
 }
예제 #2
0
 public static void newViewer(VncViewer oldViewer) {
   VncViewer viewer = new VncViewer();
   viewer.applet = oldViewer.applet;
   viewer.firstApplet = false;
   viewer.start();
 }