javax.swing.JApplet.init()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中javax.swing.JApplet.init()方法的一些代码示例,展示了JApplet.init()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JApplet.init()方法的具体详情如下:
包路径:javax.swing.JApplet
类名称:JApplet
方法名:init

JApplet.init介绍

暂无

代码示例

代码示例来源:origin: com.fifesoft/languagesupport

/**
 * Initializes this applet.
 */
@Override
public void init() {
  super.init();
  SwingUtilities.invokeLater(() -> {
    String laf = UIManager.getSystemLookAndFeelClassName();
    try {
      UIManager.setLookAndFeel(laf);
    } catch (Exception e) {
      e.printStackTrace();
    }
    setRootPane(new DemoRootPane());
  });
}

代码示例来源:origin: vgrazi/java-concurrent-animated

@Override
public void init() {
  super.init();
  addComponentListener(new ComponentAdapter() {
    public void componentResized(ComponentEvent componentEvent) {

代码示例来源:origin: net.java.dev.jets3t/jets3t

super.init();

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

super.init();

代码示例来源:origin: net.java.dev.jets3t/jets3t

super.init();

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

super.init();

代码示例来源:origin: net.java.dev.jets3t/jets3t

super.init();

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

super.init();

代码示例来源:origin: arhs/sd-dss

@Override
public void init() {
  super.init();
  try {
    for (final UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
      if (info.getName().equals("Nimbus")) {
        UIManager.setLookAndFeel(info.getClassName());
        SwingUtilities.updateComponentTreeUI(this);
      }
    }
  } catch (final Exception exception) {
    LOG.warn("Look and feel Nimbus cannot be installed");
  }
  if (parameterProvider == null) {
    parameterProvider = new AppletParameterProvider(this);
  }
  registerParameters(parameterProvider);
  registerControllers();
  layout(this);
}

相关文章