コード例 #1
0
 private void pHtextButton4MouseClicked(
     java.awt.event.MouseEvent evt) { // GEN-FIRST:event_pHtextButton4MouseClicked
   PHprinter p = new PHprinter();
   p.setList(currentTabRef.getSelected());
   JDialog d = new JDialog(this, true);
   d.add(p);
   d.setPreferredSize(
       new Dimension(p.getPreferredSize().width + 8, p.getPreferredSize().height + 32));
   d.setMinimumSize(
       new Dimension(p.getPreferredSize().width + 8, p.getPreferredSize().height + 32));
   d.setMaximumSize(
       new Dimension(p.getPreferredSize().width + 8, p.getPreferredSize().height + 32));
   d.setSize(new Dimension(p.getPreferredSize().width + 8, p.getPreferredSize().height + 32));
   d.setLocationRelativeTo(this);
   d.setResizable(false);
   d.setVisible(true);
 } // GEN-LAST:event_pHtextButton4MouseClicked
コード例 #2
0
 private void formWindowClosing(
     java.awt.event.WindowEvent evt) { // GEN-FIRST:event_formWindowClosing
   PHclose p = new PHclose();
   p.setMainForm(this);
   JDialog d = new JDialog(this, true);
   d.add(p);
   d.setPreferredSize(
       new Dimension(p.getPreferredSize().width + 8, p.getPreferredSize().height + 32));
   d.setMinimumSize(
       new Dimension(p.getPreferredSize().width + 8, p.getPreferredSize().height + 32));
   d.setMaximumSize(
       new Dimension(p.getPreferredSize().width + 8, p.getPreferredSize().height + 32));
   d.setSize(new Dimension(p.getPreferredSize().width + 8, p.getPreferredSize().height + 32));
   d.setLocationRelativeTo(this);
   d.setResizable(false);
   d.setVisible(true);
   if (close == true) {
     dispose();
   }
 } // GEN-LAST:event_formWindowClosing