Examples of JCheckBox


Examples of javax.swing.JCheckBox

      m_configAndPerspectives.add(configB, BorderLayout.WEST);

      configB.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          if (!Utils.getDontShowDialog("weka.gui.beans.KnowledgeFlow.PerspectiveInfo")) {
            JCheckBox dontShow = new JCheckBox("Do not show this message again");
            Object[] stuff = new Object[2];
            stuff[0] = "Perspectives are environments that take over the\n" +
            "Knowledge Flow UI and provide major additional functionality.\n" +
            "Many perspectives will operate on a set of instances. Instances\n" +
            "Can be sent to a perspective by placing a DataSource on the\n" +
            "layout canvas, configuring it and then selecting \"Send to perspective\"\n" +
            "from the contextual popup menu that appears when you right-click on\n" +
            "it. Several perspectives are built in to the Knowledge Flow, others\n" +
            "can be installed via the package manager.\n";
            stuff[1] = dontShow;

            JOptionPane.showMessageDialog(KnowledgeFlowApp.this, stuff,
                "Perspective information", JOptionPane.OK_OPTION);

            if (dontShow.isSelected()) {
              try {
                Utils.setDontShowDialog("weka.gui.beans.KnowledgeFlow.PerspectiveInfo");
              } catch (Exception ex) {
                // quietly ignore
              }
View Full Code Here

Examples of javax.swing.JCheckBox

      curScaleDim = new Dimension(curScale.getPreferredSize());
      curScaleDim.height = Math.max(curScaleDim.height,
          slider.getPreferredSize().height);
      stateChanged(null);

      printerView = new JCheckBox();
      printerView.setSelected(true);

      // set up panel
      gridbag = new GridBagLayout();
      gbc = new GridBagConstraints();
View Full Code Here

Examples of javax.swing.JCheckBox

              sendDialog.setVisible(true);
            }
          }
        });

        mShowDescription = new JCheckBox(mLocalizer.msg("showProgramDescription", "Show program description"),
            showDescription);
        mShowDescription.addItemListener(new ItemListener() {
          public void itemStateChanged(ItemEvent e) {
            int topRow = mList.getFirstVisibleIndex();
            mProgramPanelSettings.setShowOnlyDateAndTitle(e.getStateChange() == ItemEvent.DESELECTED);
View Full Code Here

Examples of javax.swing.JCheckBox

  public JPanel createSettingsPanel() {
    EnhancedPanelBuilder panel = new EnhancedPanelBuilder(FormFactory.RELATED_GAP_COLSPEC.encode() + ",default:grow");
   
    CellConstraints cc = new CellConstraints();
   
    mShowAtStart = new JCheckBox(mLocalizer.msg("showAtStart", "Show at startup"));
    mShowAtStart.setSelected(mSettings.getProperty("showAtStartup", "false").equals("true"));

    mPictureSettings = new PluginsPictureSettingsPanel(ListViewPlugin.getInstance().getPictureSettings(), false);
   
    panel.addRow();
View Full Code Here

Examples of javax.swing.JCheckBox

  private void createGui() {
    setLayout(new FormLayout("5dlu, fill:10dlu:grow", "3dlu, pref, 3dlu, pref, 3dlu, fill:pref:grow"));

    CellConstraints cc = new CellConstraints();

    mShowRegisterText = new JCheckBox(mLocalizer.msg("showRegister", "Show 'Please Register' Text at bottom of description"));

    if (mSettings.getShowRegisterText()) {
      mShowRegisterText.setSelected(true);
    }
View Full Code Here

Examples of javax.swing.JCheckBox

    String[] levelIds = settings.getLevelIds();

    mLevelCheckboxes = new JCheckBox[levelArr.length];
    for (int i = 0; i < levelArr.length; i++) {
      mLevelCheckboxes[i] = new JCheckBox(levelArr[i].getDescription());
      levelList.addRow();
      levelList.add(mLevelCheckboxes[i], cc.xy(2,levelList.getRow()));
      if (levelArr[i].isRequired()) {
        mLevelCheckboxes[i].setSelected(true);
        mLevelCheckboxes[i].setEnabled(false);
View Full Code Here

Examples of javax.swing.JCheckBox

    mCalendarChooser.setEnabled(false);
    content.add(mCalendarChooser, cc.xy(5,3));

    content.add(DefaultComponentFactory.getInstance().createSeparator(mLocalizer.msg("reminder", "Reminder")), cc.xyw(1,5,5));

    mReminderCheckBox = new JCheckBox(mLocalizer.msg("reminderCheckbox", "Reminder"));
    mReminderCheckBox.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent event) {
        refreshEnabledElements();
      }
    });

    content.add(mReminderCheckBox, cc.xyw(2,7,4));

    mReminderText = new JLabel(mLocalizer.msg("minutesBefore", "Remind how many minutes before?"));
    content.add(mReminderText, cc.xy(3,9));

    Vector<GoogleComboboxItem> v = new Vector<GoogleComboboxItem>();
    v.add(new GoogleComboboxItem(    5, mLocalizer.msg("5_minutes", "5 minutes")));
    v.add(new GoogleComboboxItem(   10, mLocalizer.msg("10_minutes","10 minutes")));
    v.add(new GoogleComboboxItem(   15, mLocalizer.msg("15_minutes","15 minutes")));
    v.add(new GoogleComboboxItem(   20, mLocalizer.msg("20_minutes","20 minutes")));
    v.add(new GoogleComboboxItem(   25, mLocalizer.msg("25_minutes","25 minutes")));
    v.add(new GoogleComboboxItem(   30, mLocalizer.msg("30_minutes","30 minutes")));
    v.add(new GoogleComboboxItem(   45, mLocalizer.msg("45_minutes", "45 minutes")));
    v.add(new GoogleComboboxItem(   60, mLocalizer.msg("60_minutes","1 hour")));
    v.add(new GoogleComboboxItem120, mLocalizer.msg("120_minutes","2 hours")));
    v.add(new GoogleComboboxItem180, mLocalizer.msg("180_minutes","3 hours")));
    v.add(new GoogleComboboxItem720, mLocalizer.msg("720_minutes","12 hours")));
    v.add(new GoogleComboboxItem( 1440, mLocalizer.msg("1440_minutes","1 day")));
    v.add(new GoogleComboboxItem( 2880, mLocalizer.msg("2880_minutes","2 days")));
    v.add(new GoogleComboboxItem(10080, mLocalizer.msg("10080_minutes","1 week")));
    mRemindMinutes = new JComboBox(v);

    String minutes = settings.getExporterProperty(GoogleExporter.REMINDER_MINUTES);
    for (GoogleComboboxItem item : v) {
      if (item.getKey().equals(minutes)) {
        mRemindMinutes.setSelectedItem(item);
      }
    }

    content.add(mRemindMinutes, cc.xy(5, 9));

    mUseSMS   = new JCheckBox(mLocalizer.msg("useSMS", "Use SMS"));
    mUseEMail = new JCheckBox(mLocalizer.msg("useEMail", "Use EMail"));
    mUseAlert = new JCheckBox(mLocalizer.msg("useAlert", "Use Alert"));

    content.add(mUseSMS,   cc.xyw(3,11,3));
    content.add(mUseEMail, cc.xyw(3,13,3));
    content.add(mUseAlert, cc.xyw(3,15,3));

    mReminderStore = new JCheckBox(mLocalizer.msg("storeSettings", "Use these settings and don't ask again"));
    content.add(mReminderStore, cc.xyw(2,17,4));


    ButtonBarBuilder2 builder = new ButtonBarBuilder2();
    builder.addGlue();
View Full Code Here

Examples of javax.swing.JCheckBox

    ok.addActionListener(this);
    cancel = new JButton(this.propertiesMgr.getValue("cancelOptionButton"));
    cancel.addActionListener(this);

    //Construct language panel option.
    french = new JCheckBox(this.propertiesMgr.getValue("frenchOption"));
    english = new JCheckBox(this.propertiesMgr.getValue("englishOption"));
    languagePanel.setLayout(new GridBagLayout());
    GridBagConstraints c = new GridBagConstraints();
    c.weightx = 1;
    c.fill = GridBagConstraints.HORIZONTAL;
    languageGroup.add(french);
View Full Code Here

Examples of javax.swing.JCheckBox

      mUserPwd.setText(mData.getPassword());
     
      mMaxSimult = new JSpinner(new SpinnerNumberModel(mData.getMaxSimultanious(), 1, null, 1));
      mMaxTimeout = new JSpinner(new SpinnerNumberModel(mData.getTimeout(), -1, 999, 1));

      mCheckReturn = new JCheckBox(mLocalizer.msg("CheckError", "Check if returns Error"), mData.useReturnValue());
      mShowOnError = new JCheckBox(mLocalizer.msg("ShowResultOnError","Show Result-Dialog only on Error"), mData.getDialogOnlyOnError());
      mShowTitleAndTimeDialog = new JCheckBox(mLocalizer.msg("showTitleAndTime", "Show title and time settings dialog"), mData.getShowTitleAndTimeDialog());
      mDeleteRemovedPrograms = new JCheckBox(mLocalizer.msg("autoDeletePrograms", "Automatically delete programs that were removed during a data update"), mData.getDeleteRemovedPrograms());
      mOldPrograms = new JCheckBox(mLocalizer.msg("OnlyFuture", "Only allow Programs that are in the future"), mData.getOnlyFuturePrograms());
     
      mUseTime = new JCheckBox(mLocalizer.msg("useSystemTimezone","Use timezone provided by OS"), !mData.useTimeZone());
     
      String[] zoneIds = new String[0];
      try {
        zoneIds = TimeZone.getAvailableIDs();
      } catch (Exception e) {
View Full Code Here

Examples of javax.swing.JCheckBox

    mPasswordField = new JPasswordField();
    content.add(mPasswordField, cc.xy(4,5));

    mPasswordField.setText(mPassword);
   
    mStorePassword = new JCheckBox(mLocalizer.msg("storePassword", "Store Password"));
    content.add(mStorePassword, cc.xy(4,7));
   
    mStorePassword.setSelected(mStore);
   
    ButtonBarBuilder2 builder = new ButtonBarBuilder2();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.