Package javax.swing

Examples of javax.swing.JList$AccessibleJList


    lab1.setHorizontalAlignment( SwingConstants.LEFT ) ;
    con.gridwidth = GridBagConstraints.REMAINDER ;
    gbl.setConstraints( lab1, con ) ;
    statusPanel.add( lab1 ) ;

    notFoundList = new JList() ;
    JScrollPane listScrollPane = new JScrollPane( notFoundList ) ;
    listScrollPane.setPreferredSize( new Dimension( 250, 120 ) ) ;
    con.gridwidth = 1 ;
    con.weightx = 0 ;
    con.gridheight = 2 ;
View Full Code Here


  {

    JPanel useColsPanel = new JPanel(new BorderLayout());
    // i18n[editWhereColsPanel.useColumns=Use Columns]
    useColsPanel.add(new JLabel(s_stringMgr.getString("editWhereColsPanel.useColumns")), BorderLayout.NORTH);
    useColsList = new JList(initalUseColsArray);
    JScrollPane scrollPane = new JScrollPane(useColsList);
    scrollPane.setPreferredSize(new Dimension(200, 200));
    useColsPanel.add(scrollPane, BorderLayout.SOUTH);
    add(useColsPanel);

    JPanel moveButtonsPanel = new JPanel();
    JPanel buttonPanel = new JPanel(new GridLayout(3,1));
//????? if desired, get fancy and use icons in buttons instead of text ?????????
    JButton moveToNotUsedButton = new JButton("=>");
    moveToNotUsedButton.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent evt)
      {
        moveToNotUsed();
      }
     });
    buttonPanel.add(moveToNotUsedButton);
    JButton moveToUsedButton = new JButton("<=");
    moveToUsedButton.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent evt)
      {
        moveToUsed();
      }
      });
    buttonPanel.add(moveToUsedButton);

        JButton usePKButton = new JButton(EditWhereColsPanelI18N.USE_PK);
        usePKButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                usePK();
            }
        });
        buttonPanel.add(usePKButton);
       
    moveButtonsPanel.add(buttonPanel, BorderLayout.CENTER);
    add(moveButtonsPanel);
   
    JPanel notUseColsPanel = new JPanel(new BorderLayout());
    // i18n[editWhereColsPanel.notUseColumns=Not Use Columns]
    notUseColsPanel.add(new JLabel(s_stringMgr.getString("editWhereColsPanel.notUseColumns")), BorderLayout.NORTH);
    notUseColsList = new JList(initalNotUseColsArray);
     JScrollPane notUseScrollPane = new JScrollPane(notUseColsList);
    notUseScrollPane.setPreferredSize(new Dimension(200, 200));
    notUseColsPanel.add(notUseScrollPane, BorderLayout.SOUTH);
    add(notUseColsPanel);
  }
View Full Code Here

   *  
   * @return javax.swing.JList 
   */
  private JList getEntryList() {
    if (entryList == null) {
      entryList = new JList(getEntryListModel());
      entryList.setDragEnabled(true);
      entryList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
      entryList.addListSelectionListener(new ListSelectionListener() {

        public void valueChanged(ListSelectionEvent e)
View Full Code Here

      targets.addElement( config.targets.elementAt( i));
  }
 
        listModel= new TargetListModel( targets);

        list= new JList( listModel);
 
  list.addKeyListener( this);

  list.setPrototypeCellValue( "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
View Full Code Here

         p.setLayout( gridBagLayout);

  listModel= new RtcpListModel( reports);
 
        list= new JList( listModel);
 
  list.addKeyListener( this);

  list.setPrototypeCellValue( "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
View Full Code Here

  targets= config.targets;
 
        listModel= new TargetListModel( targets);

        list= new JList( listModel);
 
  list.addKeyListener( this);

  list.setPrototypeCellValue( "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
View Full Code Here

            }

            count++;
        }

        rightComp = new JList(list.toArray());

        if (selected.size() > 0) {
            int indecis[] = new int[selected.size()];
            for (int i = 0; i < selected.size(); i++) {
                Integer in = (Integer) selected.get(i);
View Full Code Here

        final JPanel fontPanel = new JPanel(new BorderLayout());
        fontPanel
                .setBorder(BorderFactory.createTitledBorder(BorderFactory
                        .createEtchedBorder(), localizationResources
                        .getString("font")));
        this.fontlist = new JList(fonts);
        final JScrollPane fontpane = new JScrollPane(this.fontlist);
        fontpane.setBorder(BorderFactory.createEtchedBorder());
        fontPanel.add(fontpane);
        add(fontPanel, BorderLayout.CENTER);

        final JPanel testPanel = new JPanel(new BorderLayout());
        testPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory
                .createEtchedBorder(), localizationResources
                .getString("sample")));
        testPanel.add(testLabel);
        add(testPanel, BorderLayout.SOUTH);

        final JPanel sizePanel = new JPanel(new BorderLayout());
        sizePanel
                .setBorder(BorderFactory.createTitledBorder(BorderFactory
                        .createEtchedBorder(), localizationResources
                        .getString("size")));
        this.sizelist = new JList(SIZES);
        final JScrollPane sizepane = new JScrollPane(this.sizelist);
        sizepane.setBorder(BorderFactory.createEtchedBorder());
        sizePanel.add(sizepane);

        final JPanel attributes = new JPanel(new GridLayout(1, 2));
View Full Code Here

      formats[piv] = format;
      array[piv] = format.getDisplayName();
      piv++;
    }
       
        JList list = new JList(array);
        list.setBorder(BorderFactory.createEtchedBorder());
        list.setSelectionInterval(0, 0);
        list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        int answer = JOptionPane.showOptionDialog(frame, list, Globals.lang("Select format"),
            JOptionPane.YES_NO_OPTION,
            JOptionPane.QUESTION_MESSAGE, null,
            new String[]{Globals.lang("Ok"), Globals.lang("Cancel")},
            Globals.lang("Ok"));

        if (answer == JOptionPane.NO_OPTION)
            return;

        IExportFormat format = formats[list.getSelectedIndex()];

        // Set the global variable for this database's file directory before exporting,
        // so formatters can resolve linked files correctly.
        // (This is an ugly hack!)
        Globals.prefs.fileDirForDatabase = frame.basePanel().metaData()
View Full Code Here

            while (it.hasNext()) {
                AudioFile current = (AudioFile) it.next();
                audioModel.addElement(current.getName() + " "
                        + getLength(current.getLength()));
            }
            JList list = new JList(audioModel);
            list.setEnabled(false);
            list.setCellRenderer(new AudioRenderer());
            audioPane.setViewportView(list);
        }
        return this.audioPane;
    }
View Full Code Here

TOP

Related Classes of javax.swing.JList$AccessibleJList

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.