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

x33g5p2x  于2022-01-21 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(142)

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

JInternalFrame.<init>介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

sp.setPreferredSize(d);
JInternalFrame internaFrame = new JInternalFrame();
internaFrame.add(sp);
internaFrame.pack();

代码示例来源:origin: magefree/mage

public static void main(String args[]) {
    SwingUtilities.invokeLater(() -> {
      JFrame frame = new JFrame();
      frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

      JDesktopPane desktopPane = new JDesktopPane();
      DesktopManager dm = new MageDesktopManager();
      desktopPane.setDesktopManager(dm);
      JInternalFrame internalFrame = new JInternalFrame("Test Internal Frame", true, false, true, true);
      internalFrame.setSize(200, 150);
      internalFrame.setVisible(true);
      desktopPane.add(internalFrame);

      frame.add(desktopPane, BorderLayout.CENTER);
      frame.setSize(800, 600);
      frame.setVisible(true);
    });
  }
}

代码示例来源:origin: geotools/geotools

final JInternalFrame frame = new JInternalFrame(title, true, true, true, true);
frame.setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE);
frame.addInternalFrameListener(InternalWindowListener.wrap(listener));

代码示例来源:origin: stackoverflow.com

f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JInternalFrame jif = new JInternalFrame();
JPanel panel = new JPanel();
panel.setBackground(new Color(0xffffc0));

代码示例来源:origin: pentaho/mondrian

jPanel.add(jScrollPane, java.awt.BorderLayout.CENTER);
JInternalFrame jf = new JInternalFrame();
jf.setTitle("About");
jf.getContentPane().add(jPanel);

代码示例来源:origin: geotools/geotools

if (desktop != null) {
  final JInternalFrame frame;
  frame = new JInternalFrame(title);
  window = frame;
  content = new JPanel(); // Pour avoir un fond opaque

代码示例来源:origin: pentaho/mondrian

final JInternalFrame jf = new JInternalFrame();

代码示例来源:origin: pentaho/mondrian

schemaWindowMap.get(desktopPane.getSelectedFrame());
final JInternalFrame jf = new JInternalFrame();
jf.setTitle(
  getResourceConverter().getString(

代码示例来源:origin: stackoverflow.com

public class Main
{
  public static void main(String[] args)
  {
    JInternalFrame intFrame = new JInternalFrame();
    JCTest.Clear(intFrame);
  }
}

代码示例来源:origin: pentaho/mondrian

final JInternalFrame schemaFrame = new JInternalFrame();
schemaFrame.setTitle(
  getResourceConverter().getFormattedString(

代码示例来源:origin: stackoverflow.com

if(m1==null){
  m1 =  new Menu_Modifications_Single();
  JInternalFrame iFrame = 
      new JInternalFrame("Internal Frame", true, true, true, true);    
      /* give the same contents of m1 */
  iFrame.setContentPane(m1.getContentPane());    
      /* additional Integer argument, required by JDesktopPane
       (although not strictly required) */
  desktopPane.add(iFrame, new Integer(0));    
}

代码示例来源:origin: stackoverflow.com

Container container = SwingUtilities.getAncestorOfClass(JDesktopPane.class, (Component)event.getSource());

if (container != null)
{
  JDesktopPane desktop = (JDesktopPane)container;
  JInternalFrame frame = new JInternalFrame(...);
  desktop.add( frame );
}

代码示例来源:origin: stackoverflow.com

JInternalFrame jInternalFrame = new JInternalFrame();
jMenuBar = new javax.swing.JMenuBar();
jMenu1 = new JMenu("Save");
jMenu2 = new JMenu("Open");
jMenuBar.add(jMenu1);
jMenuBar.add(jMenu2);
jInternalFrame.setJMenuBar(jMenuBar);
tabbedPane.addTab("tab3", jInternalFrame);

代码示例来源:origin: stackoverflow.com

JInternalFrame iframe = new JInternalFrame("blah",true,true,true,true);
UIManager.put("InternalFrame.activeTitleBackground", new ColorUIResource(new Color(248,250,175)));
UIManager.put("InternalFrame.inactiveTitleBackground", new ColorUIResource(new Color(248,250,175)));
javax.swing.plaf.basic.BasicInternalFrameUI ui = 
  new javax.swing.plaf.basic.BasicInternalFrameUI(iframe); 
iframe.setUI(ui);

代码示例来源:origin: stackoverflow.com

JInternalFrame inFrame = new JInternalFrame();  
BasicInternalFrameTitlePane titlePane =  
   (BasicInternalFrameTitlePane) ((BasicInternalFrameUI) inFrame.getUI()).  
   getNorthPane();  
inFrame.remove(titlePane);

代码示例来源:origin: stackoverflow.com

JInternalFrame iframe = new JInternalFrame("Title", true, true, true, true);
iframe.setSize(180, 150);
iframe.setVisible(true);
iframe.getContentPane().add(new JScrollPane(new JTextArea("TestText",20,20)));
JDesktopPane desktop = new JDesktopPane();
desktop.add(iframe);

代码示例来源:origin: stackoverflow.com

JDesktopPane mainPanel;
JInternalFrame jif_test = new JInternalFrame();

public void centerJIF(JInternalFrame jif) {
  Dimension desktopSize = mainPanel.getSize();
  Dimension jInternalFrameSize = jif.getSize();
  int width = (desktopSize.width - jInternalFrameSize.width) / 2;
  int height = (desktopSize.height - jInternalFrameSize.height) / 2;
  jif.setLocation(width, height);
  jif.setVisible(true);
}

代码示例来源:origin: stackoverflow.com

asd t = new asd();
JInternalFrame internalFrame = new JInternalFrame();
internalFrame.setContentPane(t.getContentPane());
internalFrame.pack();

// set the internalFrame's location
// ...

internalFrame.setVisible(true);
dskp.add(internalFrame);

代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf

protected void initInternalFrame() {
  internalFrame = new JInternalFrame(content.getTitle(), true, true, true, true);
  internalFrame.setFrameIcon(content.getIcon());
  internalFrame.getContentPane().add(content.getComponent());
  internalFrame.setClosable(closable);
  internalFrame.setMaximizable(true);
  initInternalFrameListeners();
}

代码示例来源:origin: org.scijava/scijava-ui-swing

@Override
protected void setupConsole() {
  final JInternalFrame frame = new JInternalFrame("Console");
  desktopPane.add(frame);
  frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
  frame.setContentPane(getConsolePane().getComponent());
  frame.setJMenuBar(createConsoleMenu());
  frame.pack();
  getConsolePane().setWindow(frame);
}

相关文章

JInternalFrame类方法