Package java.awt

Examples of java.awt.Font.deriveFont()


    JLabel iL1 = new JLabel("file name:");
    infoDisplayPanel.add(iL1);

    sourceLabel = new JLabel("unknown");
    Font font = sourceLabel.getFont();
    sourceLabel.setFont(font.deriveFont(font.getStyle() | Font.BOLD));
    infoDisplayPanel.add(sourceLabel);
   
    JLabel iL2 = new JLabel("feature name:");
    infoDisplayPanel.add(iL2);
   
View Full Code Here


   
    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));
    infoDisplayPanel.add(chunksSelectedLabel);
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
    //all over tarnation every time a value changes...!!!
View Full Code Here

      ttfBase = Font.createFont(Font.TRUETYPE_FONT, in);
    } catch (final FontFormatException e1) {
      e1.printStackTrace();
    }

    fontAwesome = ttfBase.deriveFont(Font.PLAIN, 24);
    setFont(fontAwesome);

    final JButton previous = new JButton("");
    ((WebButtonUI) previous.getUI()).setUndecorated(true);
    previous.setFont(fontAwesome);
View Full Code Here

    try {
      size = Float.parseFloat(getString(fsize, "text"));
    } catch (Exception e) {
      e.printStackTrace();
    }
    f = f.deriveFont(size);
    Object[] items = getItems(preview);
    for (int i = 0; i < items.length; i++) {
      setPreviewFont(f, items[i]);
    }
  }
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.