XLabel label = new JXLabel(); label.setLineWrap(true);
JXLabel label = new JXLabel("MY TEXT"); label.setTextRotation(3 * Math.PI / 2);
JXLabel label = new JXLabel("MY TEXT"); label.setTextRotation(Math.PI / 2);
JXLabel label = new JXLabel(); label.setLineWrap(true);
JXLabel multiline = new JXLabel("this is a \nMultiline Text"); multiline.setLineWrap(true);
private JComponent getWizardStepsSidebar() { JPanel wizardStepsSidebar = new JPanel(); wizardStepsSidebar .setLayout(new BoxLayout(wizardStepsSidebar, BoxLayout.Y_AXIS)); wizardStepsSidebar.add(Box.createVerticalGlue()); this.steps.forEach(s -> { JXLabel label = new JXLabel(s.getStepTitle()); label.setLineWrap(true); label.setMaximumSize(new Dimension(150, 1000)); label.setBorder(createEmptyBorder(2, 0, 2, 0)); wizardStepsSidebar.add(label); wizardStepsSidebarLabels.add(label); }); wizardStepsSidebar.add(Box.createVerticalGlue()); CenteredJPanel component = new CenteredJPanel(wizardStepsSidebar); component.setBorder(createEmptyBorder(5, 5, 5, 20)); updateWizardStepSidebarLabelsStyle(); return component; }
private JLabel getStepLabel() { JXLabel stepLabel = new JXLabel(step.getStepTitle()); stepLabel.setFont(stepLabel.getFont().deriveFont(Font.BOLD, 20)); stepLabel.setLineWrap(true); stepLabel.setBorder(createEmptyBorder(0, 0, 5, 0)); return stepLabel; } }
separator2 = new javax.swing.JToolBar.Separator(); boxGlue = new javax.swing.JLabel(); labelFilter = new org.jdesktop.swingx.JXLabel(); filterTextField = new javax.swing.JTextField(); columnComboBox = new javax.swing.JComboBox();
private void initialize() { JXLabel jLabel6 = new JXLabel(); GridBagConstraints gridBagConstraints15 = new GridBagConstraints(); GridBagConstraints gridBagConstraints7 = new GridBagConstraints();
/** * Adds a form entry to the panel * * @param mainLabelText * @param minorLabelText * @param component */ public void addFormEntry(String mainLabelText, final String minorLabelText, final JComponent component) { if (!mainLabelText.endsWith(":")) { mainLabelText += ":"; } final DCLabel mainLabel = DCLabel.dark(mainLabelText); mainLabel.setFont(WidgetUtils.FONT_NORMAL); mainLabel.setBorder(new EmptyBorder(6, 0, 0, 0)); final JXLabel minorLabel; if (StringUtils.isNullOrEmpty(minorLabelText)) { minorLabel = null; } else { mainLabel.setToolTipText(minorLabelText); minorLabel = new JXLabel(minorLabelText); minorLabel.setLineWrap(true); minorLabel.setFont(WidgetUtils.FONT_SMALL); minorLabel.setBorder(new EmptyBorder(0, 4, 0, 0)); minorLabel.setVerticalAlignment(JXLabel.TOP); minorLabel.setPreferredSize(new Dimension(FIELD_LABEL_WIDTH - 4, 0)); } addFormEntry(mainLabel, minorLabel, component); }
/** * Sets the look and feel (L&F) object that renders this component. * * @param ui the LoginPaneUI L&F object * @see javax.swing.UIDefaults#getUI */ public void setUI(LoginPaneUI ui) { // initialized here due to implicit updateUI call from JPanel if (banner == null) { banner = new JXImagePanel(); } if (errorMessageLabel == null) { errorMessageLabel = new JXLabel(UIManagerExt.getString(CLASS_NAME + ".errorMessage", getLocale())); } super.setUI(ui); banner.setImage(createLoginBanner()); }
/** * Sets the look and feel (L&F) object that renders this component. * * @param ui the LoginPaneUI L&F object * @see javax.swing.UIDefaults#getUI */ public void setUI(LoginPaneUI ui) { // initialized here due to implicit updateUI call from JPanel if (banner == null) { banner = new JXImagePanel(); } if (errorMessageLabel == null) { errorMessageLabel = new JXLabel(UIManagerExt.getString(CLASS_NAME + ".errorMessage", getLocale())); } super.setUI(ui); banner.setImage(createLoginBanner()); }
/** * Sets the look and feel (L&F) object that renders this component. * * @param ui the LoginPaneUI L&F object * @see javax.swing.UIDefaults#getUI */ public void setUI(LoginPaneUI ui) { // initialized here due to implicit updateUI call from JPanel if (banner == null) { banner = new JXImagePanel(); } if (errorMessageLabel == null) { errorMessageLabel = new JXLabel(UIManagerExt.getString(CLASS_NAME + ".errorMessage", getLocale())); } super.setUI(ui); banner.setImage(createLoginBanner()); }
/** * Sets the look and feel (L&F) object that renders this component. * * @param ui the LoginPaneUI L&F object * @see javax.swing.UIDefaults#getUI */ public void setUI(LoginPaneUI ui) { // initialized here due to implicit updateUI call from JPanel if (banner == null) { banner = new JXImagePanel(); } if (errorMessageLabel == null) { errorMessageLabel = new JXLabel(UIManagerExt.getString(CLASS_NAME + ".errorMessage", getLocale())); } super.setUI(ui); banner.setImage(createLoginBanner()); }
/** * Sets the look and feel (L&F) object that renders this component. * * @param ui the LoginPaneUI L&F object * @see javax.swing.UIDefaults#getUI */ public void setUI(LoginPaneUI ui) { // initialized here due to implicit updateUI call from JPanel if (banner == null) { banner = new JXImagePanel(); } if (errorMessageLabel == null) { errorMessageLabel = new JXLabel(UIManagerExt.getString(CLASS_NAME + ".errorMessage", getLocale())); } super.setUI(ui); banner.setImage(createLoginBanner()); }
dateField = new JXLabel(); final JXHeader dataSeparator = new JXHeader(textBundle.textFor("ReportPanel.DataLabel"), null); //$NON-NLS-1$ this.add(dataSeparator, "0, 0, 11, 0"); //$NON-NLS-1$