deobfToggleBtn.setText("");
private GCViewerGuiToolBar initToolBar(Map<String, Action> actions) { GCViewerGuiToolBar toolBar = new GCViewerGuiToolBar(); toolBar.setFloatable(false); toolBar.add(actions.get(ActionCommands.OPEN_FILE.toString())); toolBar.add(actions.get(ActionCommands.OPEN_SERIES.toString())); toolBar.add(actions.get(ActionCommands.OPEN_URL.toString())); toolBar.add(actions.get(ActionCommands.EXPORT.toString())); toolBar.add(actions.get(ActionCommands.REFRESH.toString())); JToggleButton watchToggle = new JToggleButton(); watchToggle.setAction(actions.get(ActionCommands.WATCH.toString())); watchToggle.setText(""); toolBar.addWatchToggleButton(watchToggle); toolBar.addSeparator(); JComboBox<String> zoomComboBox = new JComboBox<String>(new String[] {"1%", "5%", "10%", "50%", "100%", "200%", "300%", "500%", "1000%", "5000%"}); zoomComboBox.setSelectedIndex(2); zoomComboBox.setAction(actions.get(ActionCommands.ZOOM.toString())); zoomComboBox.setEditable(true); zoomComboBox.setMaximumSize(zoomComboBox.getPreferredSize()); toolBar.addZoomComboBox(zoomComboBox); toolBar.addSeparator(); toolBar.add(actions.get(ActionCommands.ABOUT.toString())); return toolBar; }
btnTypeMatch.setText("Matches"); btnTypeMatch.setToolTipText("Shows all non tournament tables."); btnTypeMatch.setActionCommand("typeMatch"); btnTypeTourneyConstructed.setText("Constructed tourn."); btnTypeTourneyConstructed.setToolTipText("Shows all constructed tournament tables."); btnTypeTourneyConstructed.setActionCommand("typeTourneyConstructed"); btnTypeTourneyLimited.setText("Limited tourn."); btnTypeTourneyLimited.setToolTipText("Shows all limited tournament tables."); btnTypeTourneyLimited.setActionCommand("typeTourneyLimited"); btnSkillBeginner.setText("Beginner"); btnSkillBeginner.setToolTipText("Shows all tables with skill level beginner."); btnSkillBeginner.setActionCommand("typeMatch"); btnSkillCasual.setText("Casual"); btnSkillCasual.setToolTipText("Shows all tables with skill level casual."); btnSkillCasual.setActionCommand("typeMatch"); btnSkillSerious.setText("Serious"); btnSkillSerious.setToolTipText("Shows all tables with skill level serious."); btnSkillSerious.setActionCommand("typeMatch"); btnRated.setText("Rated"); btnRated.setToolTipText("Shows all rated tables."); btnRated.setFocusPainted(false); btnUnrated.setText("Unrated");
private ToggleEnabledWorker() { super(new Callable<Boolean>() { public Boolean call() throws Exception { boolean currState = regionInfo.isEnabled(); regionInfo.setEnabled(!currState); return regionInfo.isEnabled(); } }); enablementButton.setText(bundle.getString("wait")); enablementButton.setEnabled(false); }
private ToggleStatsEnabledWorker() { super(new Callable<Void>() { public Void call() throws Exception { if (!tornDown.get()) { setStatsEnabled(!statsEnabled); } return null; } }); toggleStatsEnabledButton.setText(bundle.getString("wait")); toggleStatsEnabledButton.setEnabled(false); }
JToggleButton tb = new JToggleButton("push me"); tb.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { JToggleButton btn = (JToggleButton) e.getSource(); btn.setText(btn.isSelected() ? "pushed" : "push me"); } });
private ClearAllStatsWorker() { super(new Callable<Void>() { public Void call() throws Exception { if (!tornDown.get()) { _clearAllStats(); } return null; } }); clearAllStatsButton.setText(bundle.getString("wait")); clearAllStatsButton.setEnabled(false); }
private ClearAllCachesWorker() { super(new Callable<Void>() { public Void call() throws Exception { if (!tornDown.get()) { cacheManagerModel.clearAllCaches(); } return null; } }); clearAllCachesButton.setText(bundle.getString("wait")); clearAllCachesButton.setEnabled(false); }
protected void createQuadrant4() { $objectMap.put("quadrant4", quadrant4 = new JToggleButton()); quadrant4.setName("quadrant4"); quadrant4.setText(t("jaxx.common.quadrant4")); }
protected void createQuadrant1() { $objectMap.put("quadrant1", quadrant1 = new JToggleButton()); quadrant1.setName("quadrant1"); quadrant1.setText(t("jaxx.common.quadrant1")); }
private void handleStatisticsEnabled(boolean enabled) { statsEnabled = enabled; String labelKey = enabled ? "disable.stats" : "enable.stats"; toggleStatsEnabledButton.setText(bundle.getString(labelKey)); toggleStatsEnabledButton.setIcon(enabled ? DISABLE_STATS_ICON : ENABLE_STATS_ICON); toggleStatsEnabledButton.setSelected(false); toggleStatsEnabledButton.setEnabled(true); }
public void statisticsEnabled() { boolean statsEnabled = cacheManagerModel.isStatsEnabled(); toggleStatsEnabledButton.setIcon(statsEnabled ? DISABLE_STATS_ICON : ENABLE_STATS_ICON); String text = bundle.getString(statsEnabled ? "disable.stats" : "enable.stats"); toggleStatsEnabledButton.setText(text); toggleStatsEnabledButton.setSelected(false); toggleStatsEnabledButton.setEnabled(true); }
public void updateLocale () { lblInstallFolder.setText(I18N.getLocaleString("INSTALL_FOLDER")); tglbtnForceUpdate.setText(I18N.getLocaleString("FORCE_UPDATE")); lblRamMaximum.setText(I18N.getLocaleString("RAM_MAX")); lblLocale.setText(I18N.getLocaleString("LANGUAGE")); }
public void setText(String _text) { super.setText("".equals(_text)?null:_text); if( !BuPreferences.BU.getBooleanProperty("button.text",true) &&(getToolTipText()==null)) super.setToolTipText(_text); }
protected JToggleButton makeToolbarToggleButton( String title, String toolTip, java.awt.Font font) { JToggleButton tmp = new JToggleButton(showButtonText ? title : ""); tmp.setFont(font); tmp.setToolTipText(toolTip); tmp.setPreferredSize(new Dimension(30, 30)); tmp.setText(title); tmp.setFocusPainted(true); return tmp; }
public JComponent create() { JToggleButton radio = new JRadioButton(); radio.setText(""); radio.setOpaque(false); String groupName = null; if (hasAttribute("name")) { groupName = getAttribute("name"); } // Add to the group for mutual exclusivity getParentForm().addButtonToGroup(groupName, radio); return radio; }
public JComponent create() { JToggleButton radio = new JRadioButton(); radio.setText(""); radio.setOpaque(false); String groupName = null; if (hasAttribute("name")) { groupName = getAttribute("name"); } // Add to the group for mutual exclusivity getParentForm().addButtonToGroup(groupName, radio); return radio; }
public JComponent create() { JToggleButton radio = new JRadioButton(); radio.setText(""); radio.setOpaque(false); String groupName = null; if (hasAttribute("name")) { groupName = getAttribute("name"); } // Add to the group for mutual exclusivity getParentForm().addButtonToGroup(groupName, radio); return radio; }
@Override public void processDataBinding() { button.setText(t(SwingUtil.getStringValue(renderer.getText(getSelectedLocale())))); } });