Package de.sciss.gui

Examples of de.sciss.gui.ModificationButton


    ggTrackPanel.add( wavePanel, BorderLayout.CENTER );
    ggTrackPanel.add( waveHeaderPanel, BorderLayout.WEST );
    ggTrackPanel.add( scroll, BorderLayout.SOUTH );
       
    lbWriteProtected  = new JLabel();
    ggAudioInfo      = new ModificationButton( ModificationButton.SHAPE_INFO );
    ggAudioInfo.setAction( new ActionAudioInfo() );
    ggRevealFile    = new ModificationButton( ModificationButton.SHAPE_REVEAL );
    actionRevealFile  = new ActionRevealFile();
    ggRevealFile.setAction( actionRevealFile );
        //    ggAudioFileDescr  = new JTextField( 32 );
        //    ggAudioFileDescr.setEditable( false );
        //    ggAudioFileDescr.setFocusable( false );
View Full Code Here


    super();
   
    pb      = new ProgressBar();
    lb      = new JLabel( "", SwingConstants.RIGHT );
    lb.setBorder( BorderFactory.createEmptyBorder( 0, 8, 0, 4 )); // T L B R
    ggCancel  = new ModificationButton( ModificationButton.SHAPE_ABORT );
    ggCancel.setEnabled( false );

    setLayout( new BoxLayout( this, BoxLayout.X_AXIS ));
    add( lb );
    add( pb );
View Full Code Here

  private JComponent createAudioBoxGUI()
  {
    final JScrollPane      ggScroll;
    final Box          b;
    final ModificationButton  ggPlus, ggMinus;
    final JButton        ggAssistent;
    final JTable        table;
    final JPanel        p;
    final JTableHeader      th;
    final SortedTableModel    stm;
   
    audioBoxesFromPrefs();
   
    p      = new JPanel( new BorderLayout() );
   
    abtm    = new AudioBoxTableModel();
    stm      = new SortedTableModel( abtm );
    table    = new JTable( stm );
    th      = table.getTableHeader();
    stm.setTableHeader( th );
    th.setReorderingAllowed( false );
    th.setResizingAllowed( true );
//    table.setAutoResizeMode( JTable.AUTO_RESIZE_OFF );
    table.setCellSelectionEnabled( true );
    table.setColumnSelectionAllowed( false );
    table.setShowGrid( true );
    table.setGridColor( Color.lightGray );
    table.setSelectionMode( ListSelectionModel.SINGLE_INTERVAL_SELECTION );
    table.setPreferredScrollableViewportSize( new Dimension( 256, 64 )); // XXX
    for( int i = 0; i < 4; i++ ) table.getColumnModel().getColumn( i ).setPreferredWidth( i == 0 ? 180 : 60 );

    stm.setSortedColumn( 0, SortedTableModel.ASCENDING );

    ggScroll  = new JScrollPane( table, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
                                       ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER );
   
    b      = Box.createHorizontalBox();
    ggPlus    = new ModificationButton( ModificationButton.SHAPE_PLUS );
    ggMinus    = new ModificationButton( ModificationButton.SHAPE_MINUS );
    ggMinus.setEnabled( false );
    ggPlus.addActionListener( new ActionListener() {
      public void actionPerformed( ActionEvent e )
      {
        final int modelIndex = collAudioBoxConfigs.size();
        final int viewIndex;
        final AudioBoxConfig cfg = createUniqueAudioBox();
View Full Code Here

                        ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS );
   
    tab.add( scroll, BorderLayout.CENTER );
   
    b      = Box.createHorizontalBox();
    ggPlus    = new ModificationButton( ModificationButton.SHAPE_PLUS );
    ggMinus    = new ModificationButton( ModificationButton.SHAPE_MINUS );
    ggMinus.setEnabled( false );
    ggPlus.addActionListener( new ActionListener() {
      public void actionPerformed( ActionEvent e )
      {
//        int row = table.getSelectedRow() + table.getSelectedRowCount();
View Full Code Here

TOP

Related Classes of de.sciss.gui.ModificationButton

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.