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

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

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

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/megamek

clientgui.getGameOptionsDialog().setEditable(true);
origin: MegaMek/megamek

    false);
god.update(g.getOptions());
god.setEditable(true);
god.setVisible(true);
for (IBasicOption opt : god.getOptions()) {
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.swingGameOptionsDialogsetEditable

Javadoc

Update the dialog so that it is editable or view-only.

Popular methods of GameOptionsDialog

  • <init>
    Creates new GameOptionsDialog for a Client
  • getOptions
  • refreshOptions
  • setVisible
  • addGroup
  • addOption
  • addSearchPanel
  • addWindowListener
  • doSave
  • getContentPane
  • getLocation
  • getSize
  • getLocation,
  • getSize,
  • init,
  • isEditable,
  • isVisible,
  • pack,
  • resetToDefaults,
  • selectGameOptionsFile,
  • send

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top PhpStorm plugins
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