Exemple #1
0
 @Override
 protected void setupAppFrame() {
   final SwingApplicationFrame appFrame = getApplicationFrame();
   final JPanel pane = new JPanel();
   appFrame.setContentPane(pane);
   pane.setLayout(new BorderLayout());
   appFrame.pack();
 }
Exemple #2
0
 @Override
 protected void setupAppFrame() {
   final SwingApplicationFrame appFrame = getApplicationFrame();
   desktopPane = new JMDIDesktopPane();
   // TODO desktopPane.setTransferHandler(new DropFileTransferHandler());
   scrollPane = new JScrollPane();
   scrollPane.setViewportView(desktopPane);
   desktopPane.setBackground(new Color(200, 200, 255));
   appFrame.getContentPane().add(scrollPane);
   appFrame.setBounds(getWorkSpaceBounds());
 }