Tabnine Logo
GameOptionsDialog.setVisible
Code IndexAdd Tabnine to your IDE (free)

How to use
setVisible
method
in
megamek.client.ui.swing.GameOptionsDialog

Best Java code snippets using megamek.client.ui.swing.GameOptionsDialog.setVisible (Showing top 7 results out of 315)

origin: MegaMek/megamek

  @Override
  public void windowClosing(WindowEvent e) {
    setVisible(false);
  }
});
origin: MegaMek/megamek

  cancelled = true;
setVisible(false);
origin: MegaMek/megamek

/**
 * Display the game options dialog.
 */
void showGameOptions() {
  GameOptions options = new GameOptions();
  options.initialize();
  options.loadOptions();
  if (optdlg == null) {
    optdlg = new GameOptionsDialog(frame, options, true);
  }
  optdlg.update(options);
  optdlg.setVisible(true);
}
origin: MegaMek/megamek

  clientgui.getGameOptionsDialog().setVisible(true);
} else if (ev.getSource().equals(butCompact)) {
  if (butCompact.isSelected()) {
origin: MegaMek/megamek

god.update(g.getOptions());
god.setEditable(true);
god.setVisible(true);
for (IBasicOption opt : god.getOptions()) {
  IOption orig = g.getOptions().getOption(opt.getName());
origin: MegaMek/megamek

/**
 * Called when the user selects the "View->Game Options" menu item.
 */
private void showOptions() {
  if (client.getGame().getPhase() == IGame.Phase.PHASE_LOUNGE) {
    getGameOptionsDialog().setEditable(true);
  } else {
    getGameOptionsDialog().setEditable(false);
  }
  // Display the game options dialog.
  getGameOptionsDialog().update(client.getGame().getOptions());
  getGameOptionsDialog().setVisible(true);
}

origin: MegaMek/mekhq

private void menuOptionsMMActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_menuOptionsActionPerformed
  GameOptionsDialog god = new GameOptionsDialog(getFrame(), getCampaign().getGameOptions(), false);
  god.refreshOptions();
  god.setEditable(true);
  god.setVisible(true);
  if (!god.wasCancelled()) {
    getCampaign().setGameOptions(god.getOptions());
    setCampaignOptionsFromGameOptions();
    refreshCalendar();
  }
}// GEN-LAST:event_menuOptionsActionPerformed
megamek.client.ui.swingGameOptionsDialogsetVisible

Popular methods of GameOptionsDialog

  • <init>
    Creates new GameOptionsDialog for a Client
  • getOptions
  • refreshOptions
  • setEditable
    Update the dialog so that it is editable or view-only.
  • addGroup
  • addOption
  • addSearchPanel
  • addWindowListener
  • doSave
  • getContentPane
  • getLocation
  • getSize
  • getLocation,
  • getSize,
  • init,
  • isEditable,
  • isVisible,
  • pack,
  • resetToDefaults,
  • selectGameOptionsFile,
  • send

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Reference (javax.naming)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now