3

CheerpJ - JavaFiddle

 1 year ago
source link: https://javafiddle.leaningtech.com/#ATAOFcCMBsEsGNj2gQwM5uAKRQNxQGKwAmx0ApgFAgDe1IYUciaALiqwsLgPYnABbFLAB2ACgDKrAE6iA5gG0AusBTS5aAJT1aOhhICebcgIB0PcK1OhZI1tHEAiABLlo0HgHUe06MQCEjpoA3HoAvvQRQA
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

CheerpJ - JavaFiddle

  public class JavaFiddle
  {
    public static void main(String[] args)
    {
      System.out.println("HelloWorld!");
    }
  }
  import java.awt.Font;
  import javax.swing.JFrame;
  import javax.swing.JLabel;
  import javax.swing.SwingUtilities;

  public class JavaFiddle implements Runnable
  {
    private String text;
    public JavaFiddle(String t)
    {
      text = t;
    }
    public void run()
    {
      JFrame f = new JFrame("Swing Sample");
      JLabel l = new JLabel(text);
      l.setFont(new Font("Serif", Font.PLAIN, 42));
      f.add(l);
      f.pack();
      f.setLocationRelativeTo(null);
      f.setVisible(true);
    }
    public static void main(String[] args)
    {
      SwingUtilities.invokeLater(new JavaFiddle("HelloWorld!"));
    }
  }
public class JavaFiddle
public static void main(String[] args)
System.out.println("HelloWorld!");
 > Java output console

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK