コード例 #1
0
 // Set the display frame visible
 public void setVisibleDisplayFrame(boolean visible) {
   if (visible) {
     System.out.println("part gen set visible: display = true");
     particleSizeInputPanel.setVisibleDisplayFrame(true);
   } else {
     System.out.println("part gen set visible: display = false");
     particleSizeInputPanel.setVisibleDisplayFrame(false);
     particleLocGenPanel.setVisibleDisplayFrame(false);
   }
 }
コード例 #2
0
  // Tab listener
  public void stateChanged(ChangeEvent e) {

    int curTab = partTabbedPane.getSelectedIndex();
    if (curTab == 0) {
      System.out.println("part gen state changed : display = true");
      particleSizeInputPanel.setVisibleDisplayFrame(true);
    } else {
      System.out.println("part gen state changed : display = false");
      particleLocGenPanel.setVisibleDisplayFrame(true);
    }
  }