本文整理了Java中javax.swing.JButton.setHideActionText()
方法的一些代码示例,展示了JButton.setHideActionText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JButton.setHideActionText()
方法的具体详情如下:
包路径:javax.swing.JButton
类名称:JButton
方法名:setHideActionText
暂无
代码示例来源:origin: stackoverflow.com
JButton manual = new JButton(sharedAction);
manual.setHideActionText(true);
myToolBar.add(manual);
代码示例来源:origin: stackoverflow.com
JButton button = new JButton( action );
button.setHideActionText( true );
代码示例来源:origin: lbalazscs/Pixelitor
private static JButton createButton(Action a, String name) {
JButton button = new JButton(a);
button.setHideActionText(true);
button.setName(name);
return button;
}
代码示例来源:origin: openpnp/openpnp
public LocationButtonsPanel(JTextField textFieldX, JTextField textFieldY, JTextField textFieldZ,
JTextField textFieldC) {
FlowLayout flowLayout = (FlowLayout) getLayout();
flowLayout.setVgap(0);
flowLayout.setHgap(2);
this.textFieldX = textFieldX;
this.textFieldY = textFieldY;
this.textFieldZ = textFieldZ;
this.textFieldC = textFieldC;
buttonCaptureCamera = new JButton(captureCameraCoordinatesAction);
buttonCaptureCamera.setHideActionText(true);
add(buttonCaptureCamera);
buttonCaptureTool = new JButton(captureToolCoordinatesAction);
buttonCaptureTool.setHideActionText(true);
add(buttonCaptureTool);
JButton buttonCenterCamera = new JButton(positionCameraAction);
buttonCenterCamera.setHideActionText(true);
add(buttonCenterCamera);
buttonCenterTool = new JButton(positionToolAction);
buttonCenterTool.setHideActionText(true);
add(buttonCenterTool);
buttonCenterToolNoSafeZ = new JButton(positionToolNoSafeZAction);
buttonCenterToolNoSafeZ.setHideActionText(true);
setActuatorName(null);
}
代码示例来源:origin: org.rwshop/org.rwshop.swing.common
myCloseButton.setContentAreaFilled(false);
myCloseButton.setFocusable(false);
myCloseButton.setHideActionText(true);
myCloseButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
myCloseButton.setMaximumSize(new java.awt.Dimension(16, 16));
代码示例来源:origin: openpnp/openpnp
firstResultButton.setHideActionText(true);
toolBar.add(firstResultButton);
previousResultButton.setHideActionText(true);
toolBar.add(previousResultButton);
lastResultButton.setHideActionText(true);
toolBar.add(lastResultButton);
pinResultButton.setHideActionText(true);
toolBar.add(pinResultButton);
代码示例来源:origin: GoSecure/csp-auditor
panel3.add(refreshButton);
analyseButton = new JButton();
analyseButton.setHideActionText(true);
analyseButton.setText("Analyze");
panel3.add(analyseButton);
代码示例来源:origin: openpnp/openpnp
buttonCenterTool.setHideActionText(true);
panelCalibration.add(buttonCenterTool, "4, 2, left, default");
代码示例来源:origin: openpnp/openpnp
homeButton.setHideActionText(true);
homeButton.setToolTipText(Translations.getString("JogControlsPanel.homeButton.toolTipText")); //$NON-NLS-1$ //$NON-NLS-1$
panelControls.add(homeButton, "2, 2"); //$NON-NLS-1$
yPlusButton.setHideActionText(true);
panelControls.add(yPlusButton, "8, 4"); //$NON-NLS-1$
zUpButton.setHideActionText(true);
panelControls.add(zUpButton, "14, 4"); //$NON-NLS-1$
positionNozzleBtn.setHideActionText(true);
positionNozzleBtn.setToolTipText(Translations.getString("JogControlsPanel.Action.positionSelectedNozzle"));
panelControls.add(positionNozzleBtn, "22, 4"); //$NON-NLS-1$
buttonStartStop.setIcon(Icons.powerOn);
panelControls.add(buttonStartStop, "2, 6"); //$NON-NLS-1$
buttonStartStop.setHideActionText(true);
xMinusButton.setHideActionText(true);
panelControls.add(xMinusButton, "6, 6"); //$NON-NLS-1$
homeXyButton.setHideActionText(true);
panelControls.add(homeXyButton, "8, 6"); //$NON-NLS-1$
xPlusButton.setHideActionText(true);
panelControls.add(xPlusButton, "10, 6"); //$NON-NLS-1$
homeZButton.setHideActionText(true);
panelControls.add(homeZButton, "14, 6"); //$NON-NLS-1$
代码示例来源:origin: cpesch/RouteConverter
panel2.add(buttonDeleteRoute, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
buttonRenameRoute = new JButton();
buttonRenameRoute.setHideActionText(false);
this.$$$loadButtonText$$$(buttonRenameRoute, ResourceBundle.getBundle("slash/navigation/converter/gui/RouteConverter").getString("rename-route-action"));
buttonRenameRoute.setToolTipText(ResourceBundle.getBundle("slash/navigation/converter/gui/RouteConverter").getString("rename-route-action-tooltip"));
代码示例来源:origin: openpnp/openpnp
readPropertyValueBtn.setHideActionText(true);
panel.add(readPropertyValueBtn, "6, 4");
代码示例来源:origin: openpnp/openpnp
refreshButton.setHideActionText(true);
toolbar.add(refreshButton);
btnAdd.setHideActionText(true);
toolbar.add(btnAdd);
btnRemove.setHideActionText(true);
toolbar.add(btnRemove);
copyButton.setHideActionText(true);
toolbar.add(copyButton);
pasteButton.setHideActionText(true);
toolbar.add(pasteButton);
代码示例来源:origin: openpnp/openpnp
btnNewFeeder.setHideActionText(true);
toolBar.add(btnNewFeeder);
btnDeleteFeeder.setHideActionText(true);
toolBar.add(btnDeleteFeeder);
代码示例来源:origin: org.cytoscape/swing-application-impl
/**
* If the given Action has an absent or false inToolBar property, return;
* otherwise delegate to addAction( String, Action ) with the value of its
* gravity property.
*/
public boolean addAction(CyAction action) {
if (!action.isInToolBar())
return false;
// At present we allow an Action to be in this tool bar only once.
if ( actionButtonMap.containsKey( action ) )
return false;
action.updateEnableState();
JButton button = new JButton(action);
button.setBorderPainted(false);
button.setRolloverEnabled(true);
button.setHideActionText(true);
componentGravity.put(button,action.getToolbarGravity());
// If SHORT_DESCRIPTION exists, use this as tool-tip
String shortDescription = (String) action.getValue(Action.SHORT_DESCRIPTION);
if (shortDescription != null)
button.setToolTipText(shortDescription);
actionButtonMap.put(action, button);
int addInd = getInsertLocation(action.getToolbarGravity());
orderedList.add(addInd, button);
addComponents();
return true;
}
代码示例来源:origin: cpesch/RouteConverter
convertPanel.add(panel3, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
buttonNewPositionList = new JButton();
buttonNewPositionList.setHideActionText(true);
buttonNewPositionList.setIcon(new ImageIcon(getClass().getResource("/slash/navigation/converter/gui/16/new-route.png")));
buttonNewPositionList.setToolTipText(ResourceBundle.getBundle("slash/navigation/converter/gui/RouteConverter").getString("new-positionlist-action-tooltip"));
panel3.add(buttonNewPositionList, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
buttonRenamePositionList = new JButton();
buttonRenamePositionList.setHideActionText(true);
buttonRenamePositionList.setIcon(new ImageIcon(getClass().getResource("/slash/navigation/converter/gui/16/rename-route.png")));
buttonRenamePositionList.setToolTipText(ResourceBundle.getBundle("slash/navigation/converter/gui/RouteConverter").getString("rename-positionlist-action-tooltip"));
panel3.add(buttonRenamePositionList, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
buttonDeletePositionList = new JButton();
buttonDeletePositionList.setHideActionText(true);
buttonDeletePositionList.setIcon(new ImageIcon(getClass().getResource("/slash/navigation/converter/gui/16/delete-action.png")));
buttonDeletePositionList.setToolTipText(ResourceBundle.getBundle("slash/navigation/converter/gui/RouteConverter").getString("delete-positionlist-action-tooltip"));
buttonMovePositionToTop = new JButton();
buttonMovePositionToTop.setFocusable(true);
buttonMovePositionToTop.setHideActionText(true);
buttonMovePositionToTop.setIcon(new ImageIcon(getClass().getResource("/slash/navigation/converter/gui/24/top.png")));
buttonMovePositionToTop.setToolTipText(ResourceBundle.getBundle("slash/navigation/converter/gui/RouteConverter").getString("top-action-tooltip"));
buttonMovePositionUp = new JButton();
buttonMovePositionUp.setFocusable(false);
buttonMovePositionUp.setHideActionText(true);
buttonMovePositionUp.setIcon(new ImageIcon(getClass().getResource("/slash/navigation/converter/gui/24/up.png")));
buttonMovePositionUp.setToolTipText(ResourceBundle.getBundle("slash/navigation/converter/gui/RouteConverter").getString("up-action-tooltip"));
buttonNewPosition = new JButton();
代码示例来源:origin: openpnp/openpnp
btnStartPauseResumeJob.setHideActionText(true);
toolBarBoards.add(btnStartPauseResumeJob);
JButton btnStepJob = new JButton(stepJobAction);
btnStepJob.setHideActionText(true);
toolBarBoards.add(btnStepJob);
JButton btnStopJob = new JButton(stopJobAction);
btnStopJob.setHideActionText(true);
toolBarBoards.add(btnStopJob);
toolBarBoards.addSeparator();
JButton btnAddBoard = new JButton(addBoardAction);
btnAddBoard.setHideActionText(true);
btnAddBoard.addMouseListener(new MouseAdapter() {
@Override
toolBarBoards.add(btnAddBoard);
JButton btnRemoveBoard = new JButton(removeBoardAction);
btnRemoveBoard.setHideActionText(true);
toolBarBoards.add(btnRemoveBoard);
toolBarBoards.addSeparator();
JButton btnCaptureCameraBoardLocation = new JButton(captureCameraBoardLocationAction);
btnCaptureCameraBoardLocation.setHideActionText(true);
toolBarBoards.add(btnCaptureCameraBoardLocation);
btnCaptureToolBoardLocation.setHideActionText(true);
toolBarBoards.add(btnCaptureToolBoardLocation);
btnPositionCameraBoardLocation.setHideActionText(true);
toolBarBoards.add(btnPositionCameraBoardLocation);
代码示例来源:origin: openpnp/openpnp
btnNewPlacement.setHideActionText(true);
toolBarPlacements.add(btnNewPlacement);
JButton btnRemovePlacement = new JButton(removeAction);
btnRemovePlacement.setHideActionText(true);
toolBarPlacements.add(btnRemovePlacement);
toolBarPlacements.addSeparator();
JButton btnCaptureCameraPlacementLocation = new JButton(captureCameraPlacementLocation);
btnCaptureCameraPlacementLocation.setHideActionText(true);
toolBarPlacements.add(btnCaptureCameraPlacementLocation);
btnCaptureToolPlacementLocation.setHideActionText(true);
toolBarPlacements.add(btnCaptureToolPlacementLocation);
btnPositionCameraPositionLocation.setHideActionText(true);
toolBarPlacements.add(btnPositionCameraPositionLocation);
JButton btnPositionCameraPositionNextLocation =
new JButton(moveCameraToPlacementLocationNext);
btnPositionCameraPositionNextLocation.setHideActionText(true);
toolBarPlacements.add(btnPositionCameraPositionNextLocation);
btnPositionToolPositionLocation.setHideActionText(true);
toolBarPlacements.add(btnPositionToolPositionLocation);
btnEditFeeder.setHideActionText(true);
toolBarPlacements.add(btnEditFeeder);
tableModel = new PlacementsTableModel(configuration);
代码示例来源:origin: openpnp/openpnp
btnNewPad.setHideActionText(true);
toolBar.add(btnNewPad);
JButton btnRemovePad = new JButton(removeAction);
btnRemovePad.setHideActionText(true);
toolBar.add(btnRemovePad);
toolBar.addSeparator();
btnPositionCameraPositionLocation.setHideActionText(true);
toolBar.add(btnPositionCameraPositionLocation);
btnPositionToolPositionLocation.setHideActionText(true);
toolBar.add(btnPositionToolPositionLocation);
代码示例来源:origin: openpnp/openpnp
new JButton(collapsePane.getActionMap().get(JXCollapsiblePane.TOGGLE_ACTION));
collapseButton.setBorderPainted(false);
collapseButton.setHideActionText(true);
collapseButton.setText(""); //$NON-NLS-1$
代码示例来源:origin: org.orbisgis/orbisgis-view
/**
* Add new menu to the OrbisGIS core
*/
private void addCoreMenu() {
DefaultAction def = new DefaultAction(MainFrameAction.MENU_SAVE, I18N.tr("&Save"), OrbisGISIcon.getIcon("save"),
EventHandler.create(ActionListener.class, this, "onMenuSaveApplication"));
def.setParent(MainFrameAction.MENU_FILE).setBefore(MainFrameAction.MENU_EXIT);
mainFrame.addMenu(def);
def.setToolTipText(I18N.tr("Save the workspace"));
JButton saveBt = new CustomButton(def);
saveBt.setHideActionText(true);
mainFrame.addToolBarComponent(saveBt, "align left");
}
内容来源于网络,如有侵权,请联系作者删除!