Package java.awt

Examples of java.awt.List$AccessibleAWTList$AccessibleAWTListChild


    private void createComponents() {
        path = new TextField();
        fileName = new TextField();
        dirChoice = createCustomChoice();
        filter = new TextField(filterStr);
        folders = new List();
        files = new List();
        okButton = new Button("OK"); //$NON-NLS-1$
        filterButton = new Button("Filter"); //$NON-NLS-1$
        cancelButton = new Button("Cancel"); //$NON-NLS-1$
    }
View Full Code Here


        Container cp = getContentPane();

        Panel top = new Panel();
        top.setLayout(new FlowLayout());

        fontNameChoice = new List(8);
        top.add(fontNameChoice);

        Toolkit toolkit = Toolkit.getDefaultToolkit();
        // For JDK 1.1: returns about 10 names (Serif, SansSerif, etc.)
        // fontList = toolkit.getFontList();
        // For JDK 1.2: a much longer list; most of the names that come
        // with your OS (e.g., Arial), plus the Sun/Java ones (Lucida,
        // Lucida Bright, Lucida Sans...)
        fontList = GraphicsEnvironment.getLocalGraphicsEnvironment()
                .getAvailableFontFamilyNames();

        for (int i = 0; i < fontList.length; i++)
            fontNameChoice.add(fontList[i]);
        fontNameChoice.select(0);

        fontSizeChoice = new List(8);
        top.add(fontSizeChoice);

        for (int i = 0; i < fontSizes.length; i++)
            fontSizeChoice.add(fontSizes[i]);
        fontSizeChoice.select(DEFAULT_SIZE);
View Full Code Here

    addQueryButton = new JButton("Add");
    addQueryButton.addActionListener(this);
    clearQueryButton = new JButton("Clear");
    clearQueryButton.addActionListener(this);
    centerPanel = new JPanel();
    queriesList = new List();

    upperPanel.add(queryButtonsPanel);
    operatorLabel = new JLabel("Operator");
    queryButtonsPanel.add(operatorLabel);
    operatorComboBox = new JComboBox();
View Full Code Here

  List list;
  boolean refill;

  public ResourceViewer() {
    super("ResourceViewer");
    list = new List();

    setLayout(new BorderLayout());
    add("Center", list);

    Button clearCashButton = new Button("clear the cache");
View Full Code Here

     * @return java.awt.List
     */
    private List getTargetList() {
        if (iTargetList == null) {
            try {
                iTargetList = new List();
                iTargetList.setName("TargetList");
                iTargetList.setEnabled(true);
            } catch (Throwable iExc) {
                handleException(iExc);
            }
View Full Code Here

        initializeData();
        show();
    }  

    private void initializeLists() {
        noteList = new List(6);
        noteList.add( "Rest" );       
        noteList.add( "A" );       
        noteList.add( "A#" );       
        noteList.add( "B" );       
        noteList.add( "C" );       
        noteList.add( "C#" );       
        noteList.add( "D" );       
        noteList.add( "D#" );       
        noteList.add( "E" );       
        noteList.add( "F" );       
        noteList.add( "F#" );       
        noteList.add( "G" );       
        noteList.add( "G#" );       
       
        octaveList = new List(6);
        octaveList.add("-1");
        octaveList.add("0");
        octaveList.add("1");
        octaveList.add("2");
        octaveList.add("3");
View Full Code Here

  // do or what it takes to make it happen.
  // Mine sounds like it tries but doesn't come close
  // on many of the instruments
    private void initializeInstrumentList()
    {
      instrumentList = new List();
        instrumentList.add("Accordion             21");
        instrumentList.add("Applausen            126");
        instrumentList.add("Bandneon              23");
        instrumentList.add("Banjo                105");
        instrumentList.add("Bagpipes             109");
View Full Code Here

    }
   
   
  private void initializeVolumeList()
    {
      volumeList = new List();
    int   minVolume   = 7;       
    int   maxVolume   = 256;       
    int   volumeStep  = 6;       
      for ( int i = minVolume; i <= maxVolume; i += volumeStep)
      {
View Full Code Here

    }              
    }
   
  private void initializeTempoList()
    {
      tempoList = new List();
      for (double x = 36.0;  x <143.0;  x+= 2.0) {
      tempoList.add( (new Double(x)).toString() );
    }              
      for (double y = 144.0;  y <250.0;  y+= 4.0) {
      tempoList.add( (new Double(y)).toString() );
View Full Code Here

     * @return java.awt.List
     */
    private List getTargetList() {
        if (iTargetList == null) {
            try {
                iTargetList = new List();
                iTargetList.setName("TargetList");
                iTargetList.setEnabled(true);
            } catch (Throwable iExc) {
                handleException(iExc);
            }
View Full Code Here

TOP

Related Classes of java.awt.List$AccessibleAWTList$AccessibleAWTListChild

Copyright © 2018 www.massapicom. 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.