Package java.awt

Examples of java.awt.List$State


     * @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


      tf_ending_index.setBounds(213, 215, 76, 19);
      contentPanel.add(tf_ending_index);
      tf_ending_index.setColumns(10);
    }
    {
      lst_ports = new List();
      lst_ports.setBounds(30, 280, 278, 155);
      contentPanel.add(lst_ports);
    }
    {
      lst_generics = new List();
      lst_generics.setBounds(30, 280, 278, 155);
      lst_generics.setVisible(false);
      contentPanel.add(lst_generics);
    }
    {
View Full Code Here

      public void actionPerformed(ActionEvent ae) {
        sortKeyChanged("h");
      }
    });
    p6.add(sorthost);
    memberlist = new List(0, true);
    memberlist.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent ae) {
        sendAction();
      }
    });
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

  @SuppressWarnings({ "nls", "boxing" })
    protected void initialize(Class<?> type, Object oldInstance,
      Object newInstance, Encoder enc) {
    super.initialize(type, oldInstance, newInstance, enc);

    List list = (List) oldInstance;
    Statement setterStm = new Statement(oldInstance, "setSize",
        new Object[] { list.getSize()});
    enc.writeStatement(setterStm);
   
    int count = list.getItemCount();
    Expression getterExp = null;
    for (int i = 0; i < count; i++) {
      getterExp = new Expression(list, "getItem", new Object[] { i });
      try {
        // Calculate the old value of the property
View Full Code Here

    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

TOP

Related Classes of java.awt.List$State

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.