private void openVPFCoveragePanel(VPFDatabase db, VPFLayer layer) { VPFCoveragePanel panel = new VPFCoveragePanel(getWwd(), db); panel.setLayer(layer); JFrame frame = new JFrame(db.getName()); frame.setResizable(true); frame.setAlwaysOnTop(true); frame.add(panel); frame.pack(); WWUtil.alignComponent(this, frame, AVKey.CENTER); frame.setVisible(true); }
public ViewViewVolume() { this.getContentPane().setLayout(new BorderLayout(5, 5)); this.wwp = new WWPanel(new Dimension(650, 500)); this.getContentPane().add(wwp); this.pack(); this.setResizable(true); WWUtil.alignComponent(null, this, AVKey.CENTER); this.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE); }