Package java.awt

Examples of java.awt.Font.deriveFont()


    JLabel iL2 = new JLabel("feature name:");
    infoDisplayPanel.add(iL2);

    featureNameLabel = new JLabel("unknown feature...");
    featureNameLabel.setFont(font.deriveFont(font.getStyle() | Font.BOLD));
    infoDisplayPanel.add(featureNameLabel);

    JLabel iL3 = new JLabel("feature range:");
    infoDisplayPanel.add(iL3);
View Full Code Here


    JLabel iL3 = new JLabel("feature range:");
    infoDisplayPanel.add(iL3);

    featureRangeLabel = new JLabel("unknown range");
    featureRangeLabel.setFont(font.deriveFont(font.getStyle() | Font.BOLD));
    infoDisplayPanel.add(featureRangeLabel);

    JLabel iL4 = new JLabel("feature value:");
    infoDisplayPanel.add(iL4);
View Full Code Here

    JLabel iL4 = new JLabel("feature value:");
    infoDisplayPanel.add(iL4);

    featureValueLabel = new JLabel("unknown value");
    featureValueLabel.setFont(font.deriveFont(font.getStyle() | Font.BOLD));
    infoDisplayPanel.add(featureValueLabel);

    JLabel iL5 = new JLabel("start time:");
    infoDisplayPanel.add(iL5);
View Full Code Here

    JLabel iL5 = new JLabel("start time:");
    infoDisplayPanel.add(iL5);

    startTimeLabel = new JLabel("???");
    startTimeLabel.setFont(font.deriveFont(font.getStyle() | Font.BOLD));
    infoDisplayPanel.add(startTimeLabel);

    JLabel iL6 = new JLabel("length:");
    infoDisplayPanel.add(iL6);
View Full Code Here

    JLabel iL6 = new JLabel("length:");
    infoDisplayPanel.add(iL6);

    lengthLabel = new JLabel("???");
    lengthLabel.setFont(font.deriveFont(font.getStyle() | Font.BOLD));
    infoDisplayPanel.add(lengthLabel);

    JLabel iL7 = new JLabel("dest time:");
    infoDisplayPanel.add(iL7);
View Full Code Here

    JLabel iL7 = new JLabel("dest time:");
    infoDisplayPanel.add(iL7);

    destTimeLabel = new JLabel("???");
    destTimeLabel.setFont(font.deriveFont(font.getStyle() | Font.BOLD));
    infoDisplayPanel.add(destTimeLabel);

    chunksSelectedLabel = new JLabel("0 selected");
    chunksSelectedLabel.setFont(font
        .deriveFont(font.getStyle() | Font.BOLD));
View Full Code Here

    destTimeLabel = new JLabel("???");
    destTimeLabel.setFont(font.deriveFont(font.getStyle() | Font.BOLD));
    infoDisplayPanel.add(destTimeLabel);

    chunksSelectedLabel = new JLabel("0 selected");
    chunksSelectedLabel.setFont(font
        .deriveFont(font.getStyle() | Font.BOLD));
    infoDisplayPanel.add(chunksSelectedLabel);

    // ARRRRG! This is such a kludge.
    // If I don't do this then the freaking infoDisplayPanel jumps
View Full Code Here

    }

    final JPanel contentPane = new JPanel();
    contentPane.setLayout(new GridBagLayout());
    final JTextPane messageLabel = new JTextPane();
    messageLabel.setFont(font.deriveFont(Font.BOLD));
    messageLabel.setText(Messages.getInstance().getString("VersionCheckerUtility.Message"));
    messageLabel.setFocusable(false);
    messageLabel.setBackground(null);

    final String url = Messages.getInstance().getString("VersionCheckerUtility.URL");
View Full Code Here

    final HyperLink linkLbl = new HyperLink(url);
    linkLbl.addMouseListener(new HyperlinkHandler(url, linkLbl));

    final String questionText = Messages.getInstance().getString("VersionCheckerUtility.Question");
    final JTextPane questionLabel = new JTextPane();
    questionLabel.setFont(font.deriveFont(Font.BOLD));
    questionLabel.setText(questionText);
    questionLabel.setBackground(null);
    questionLabel.setFocusable(false);

    final GridBagConstraints c = new GridBagConstraints();
View Full Code Here

            }
            else if(textattribute.equals(TextAttribute.FAMILY)) {
              Font font = getFont();
              Map fontAttributes = font.getAttributes();
              fontAttributes.put(TextAttribute.FAMILY, iter.getAttributes().get(textattribute));
              setFont(font.deriveFont(fontAttributes));
            }
            else if(textattribute.equals(TextAttribute.POSTURE)) {
              Font font = getFont();
              Map fontAttributes = font.getAttributes();
              fontAttributes.put(TextAttribute.POSTURE, iter.getAttributes().get(textattribute));
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.