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

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

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

JDesktopPane.<init>介绍

暂无

代码示例

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

internaFrame.setVisible(true);
JDesktopPane desktopPane = new JDesktopPane();
desktopPane.add(internaFrame);

代码示例来源: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: pentaho/mondrian

desktopPane = new javax.swing.JDesktopPane();
jToolBar1 = new javax.swing.JToolBar();
jToolBar2 = new javax.swing.JToolBar();

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

final JDesktopPane desk = new JDesktopPane();
...
String s=JOptionPane.showInternalInputDialog(desk, "Enter Name");

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

setContentPane(new JDesktopPane());  // Will bring the currently activated JInternalFrame to top
add(frame_A);
add(frame_B);
add(frame_C);

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

JDesktopPane desktop = new JDesktopPane()
{
  protected void paintComponent(Graphics g)
  {
    g.drawImage(image, 0, 0, getWidth(), getHeight(), null);
  }

};

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

JDesktopPane dt = new JDesktopPane(); 
// add internalframes
...
// decorate the pane with the layer
JLayer<JDesktopPane> layer = new JLayer<>(dt, new DesktopLayerUI());
gui.add(new JScrollPane(layer), BorderLayout.CENTER);

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

JDesktopPane desktop;

public ManagerInterface() {
  showEmployees = new ShowEmployees();
  desktop = new JDesktopPane();
  desktop.add(showEmployees);

  frame = new JFrame("MagagerInterface");
  frame.setContentPane(desktop);
  ....
}

代码示例来源:origin: bcdev/beam

public TabbedDesktopPane() {
  this(new JideTabbedPane(JTabbedPane.TOP,
              JTabbedPane.SCROLL_TAB_LAYOUT),
     new JDesktopPane());
}

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

public Lab2() {
  JDesktopPane p = new JDesktopPane();
  add(p);
  p.add(new Btns());
}

代码示例来源:origin: fr.ifremer/isis-fish

protected void createSimulationDesktopPane() {
  $objectMap.put("simulationDesktopPane", simulationDesktopPane = new JDesktopPane());
  
  simulationDesktopPane.setName("simulationDesktopPane");
}

代码示例来源:origin: net.sf.nimrod/nimrod-laf

private void hazPreview4() {
 pView4 = new JPanel( new BorderLayout(3,3));
 
 desktop = new JDesktopPane();
 desktop.setBorder( BorderFactory.createEtchedBorder());
 
 JButton bAdd = new JButton( "Add InternalFrame");
 bAdd.addActionListener( new MiFL());
 pView4.add( bAdd, BorderLayout.NORTH);
 pView4.add( desktop, BorderLayout.CENTER);
 
 JPanel pp = new JPanel(new BorderLayout());
 pp.add( new JLabel( "If you like the icons, here they are..."), BorderLayout.NORTH);
 pp.add( new JTextField( "http://www.kde-look.org/content/show.php/Alien+OSX?content=53829"), BorderLayout.CENTER);
 
 pView4.add( pp, BorderLayout.SOUTH);
}

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

JFrame window = new JFrame();
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
window.setBounds(30, 30, 300, 300);
window.setVisible(true);
window.setSize(600, 400);

JDesktopPane desktopPane = new JDesktopPane();
JInternalFrame internalFrame = new JInternalFrame();        
JPanel mainPanel = new JPanel();
mainPanel.add(desktopPane);
mainPanel.add(internalFrame);
window.add(mainPanel);

代码示例来源:origin: org.solovyev/common-other

public CutHillMcKeeAlgorithmApp() {
  super("visualisation.CutHillMcKeeAlgorithmApp");
  //Make the big window be indented 50 pixels from each edge
  //of the screen.
  int inset = 50;
  Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
  setBounds(inset, inset,
      screenSize.width - inset * 2,
      screenSize.height - inset * 2);
  JDesktopPane desktop = new JDesktopPane();
  this.setContentPane(desktop);
}

代码示例来源:origin: robo-code/robocode

public JDesktopPane getDesktopPane() {
  if (desktopPane == null) {
    desktopPane = new JDesktopPane();
    desktopPane.setBackground(Color.GRAY);
    desktopPane.setPreferredSize(new Dimension(750, 550));
  }
  return desktopPane;
}

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

JDesktopPane desktopPane = new JDesktopPane();
 tabbedPane.addTab("New tab", null, desktopPane, null);
 JMenuBar menuBar_1 = new JMenuBar();
 menuBar_1.setBounds(0, 0, 441, 21);
 desktopPane.add(menuBar_1);

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

public Component create(Context context) {
    JDesktopPane desktopPane = new JDesktopPane();
    desktopPane.setDesktopManager(new ContentDesktopManager());
    return desktopPane;
  }
}

代码示例来源: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 desktopPane = new JDesktopPane();
contentPane.add(desktopPane);
JInternalFrame internalFrame = new JInternalFrame("New JInternalFrame");
desktopPane.add(internalFrame);
desktopPane.setComponentZOrder(internalFrame, 0);

代码示例来源:origin: senbox-org/snap-desktop

private void initComponents() {
  setLayout(new BorderLayout());
  DefaultTabDataModel tabDataModel = new DefaultTabDataModel();
  tabbedContainer = new TabbedContainer(tabDataModel,
                     TabbedContainer.TYPE_EDITOR,
                     WinsysInfoForTabbedContainer.getDefault(new MyWinsysInfoForTabbedContainer()));
  tabbedContainer.setVisible(false);
  desktopPane = new JDesktopPane();
  add(tabbedContainer, BorderLayout.NORTH);
  add(desktopPane, BorderLayout.CENTER);
}

相关文章