當前位置: 首頁>>代碼示例>>Java>>正文


Java JApplet.start方法代碼示例

本文整理匯總了Java中javax.swing.JApplet.start方法的典型用法代碼示例。如果您正苦於以下問題:Java JApplet.start方法的具體用法?Java JApplet.start怎麽用?Java JApplet.start使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在javax.swing.JApplet的用法示例。


在下文中一共展示了JApplet.start方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: main

import javax.swing.JApplet; //導入方法依賴的package包/類
/**
 * @param args the command line arguments
 */
public static void main(String args[]) {
    JApplet applet = new DVSActApplet();
    JFrame frame = new ActivityMonitorTest(applet);
    applet.init();
    applet.start();
    frame.setVisible(true);
}
 
開發者ID:SensorsINI,項目名稱:jaer,代碼行數:11,代碼來源:ActivityMonitorTest.java

示例2: main

import javax.swing.JApplet; //導入方法依賴的package包/類
/**
 * For testing in JFrame
 * @param args the command line arguments
 */
public static void main(String args[]) {
    JApplet applet = new ClockApplet();
    JFrame frame = new ActivityMonitorTest(applet);
    applet.init();
    applet.start();
    frame.setVisible(true);
}
 
開發者ID:SensorsINI,項目名稱:jaer,代碼行數:12,代碼來源:ClockApplet.java

示例3: main

import javax.swing.JApplet; //導入方法依賴的package包/類
/**
 * For testing in JFrame
 * @param args the command line arguments
 */
public static void main(String args[]) {
    JApplet applet = new DVSActApplet();
    JFrame frame = new ActivityMonitorTest(applet);
    frame.setVisible(true);
    applet.init();
    applet.start();
}
 
開發者ID:SensorsINI,項目名稱:jaer,代碼行數:12,代碼來源:DVSActApplet.java

示例4: run

import javax.swing.JApplet; //導入方法依賴的package包/類
public static void run(JApplet applet, int width, int height) {
	JFrame frame = new JFrame();
	frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	frame.getContentPane().add(applet);
	frame.setSize(width, height);
	applet.init();
	applet.start();
	frame.setVisible(true);
}
 
開發者ID:iig-uni-freiburg,項目名稱:SWAT20,代碼行數:10,代碼來源:Separation.java

示例5: main

import javax.swing.JApplet; //導入方法依賴的package包/類
/**
 * Start this as a Java applet.
 * 
 * @param argv not used
 */
static public void main (String argv[]) {
    JApplet applet = new BlackScholesOptionCalculator();
    JFrame frame = new JFrame("BlackScholesOptionCalculator");			// create graphics frame
    frame.getContentPane().add(applet);									// add the applet
    frame.setSize(500,300);
    applet.init();														// initialise applet
    applet.start();
    frame.setVisible(true);
}
 
開發者ID:finmath,項目名稱:finmath-experiments,代碼行數:15,代碼來源:BlackScholesOptionCalculator.java

示例6: main

import javax.swing.JApplet; //導入方法依賴的package包/類
/**
 * Run test applet.
 *
 * @param args command line parameters
 */
 public static void main(String[] args)
 {
     JApplet applet = new JApplet() {
         
private static final long serialVersionUID = 1L;

@Override
         public void init()
         {
             setLayout(new GridBagLayout());
             
             WheelswitchDemo wst = new WheelswitchDemo();
 
             GridBagConstraints consContent = new GridBagConstraints();
             consContent.gridx = 0;
             consContent.gridy = 1;
             consContent.gridwidth = 0;
             consContent.fill = java.awt.GridBagConstraints.BOTH;
             consContent.anchor = GridBagConstraints.CENTER;
             consContent.weightx = 1.0;
             consContent.weighty = 1.0;
             consContent.insets = new java.awt.Insets(11, 11, 11, 11);
             add(wst.initializeContentPanel(), consContent);

             ScrollPane helpTextScrollPane = new ScrollPane();
             helpTextScrollPane.add(wst.getHelpTextArea());
             
             GridBagConstraints consHelp = new GridBagConstraints();
             consHelp.gridx = 0;
             consHelp.gridy = 2;
             consHelp.gridwidth = 0;
             consHelp.fill = java.awt.GridBagConstraints.HORIZONTAL;
             consHelp.anchor = GridBagConstraints.CENTER;
             consHelp.weightx = 1.0;
             consHelp.weighty = 0.0;
             consHelp.insets = new java.awt.Insets(0, 11, 11, 11);
             add(helpTextScrollPane, consHelp);
         }
     };

     JFrame frame = new JFrame("Wheelswitch Testing Applet");
     frame.getContentPane().add(applet);
     frame.setSize(500, 400);
     frame.addWindowListener(new WindowAdapter() {
         @Override
         public void windowClosing(WindowEvent e)
         {
             System.exit(0);
         }
     });
     applet.init();
     applet.start();
     frame.setVisible(true);
 }
 
開發者ID:openxal,項目名稱:openxal,代碼行數:60,代碼來源:WheelswitchDemo.java


注:本文中的javax.swing.JApplet.start方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。