All pastes #384991 Raw Edit

sven

public java v1 · immutable
·published 2007-03-07 14:47 UTC
rendered paste body
package tempotimer.gui;import java.awt.*;import javax.swing.*;import video.VideoWindow;/** * <p>Title: Tempotimer</p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: Officeline</p> * @author not attributable * @version 1.0 */public class trainingVideoPanel extends JPanel {    GridBagLayout gridBagLayout1 = new GridBagLayout();  JPanel jPanel1 = new JPanel();  JLabel jLabel1 = new JLabel();  JSlider jSlider1 = new JSlider();  JLabel jLabel2 = new JLabel();  GridBagLayout gridBagLayout2 = new GridBagLayout();  public trainingVideoPanel() {    try {      jbInit();    }    catch(Exception ex) {      ex.printStackTrace();    }  }  void jbInit() throws Exception {    this.setLayout(gridBagLayout2);    jLabel1.setMaximumSize(new Dimension(30, 30));    jLabel1.setMinimumSize(new Dimension(30, 30));    jLabel1.setPreferredSize(new Dimension(30, 30));    jLabel1.setText("jLabel1");    jLabel2.setMaximumSize(new Dimension(30, 30));    jLabel2.setMinimumSize(new Dimension(30, 30));    jLabel2.setPreferredSize(new Dimension(30, 30));    jLabel2.setText("jLabel2");    jSlider1.setMaximumSize(new Dimension(32767, 30));    jSlider1.setMinimumSize(new Dimension(36, 30));    jSlider1.setPreferredSize(new Dimension(300, 30));    this.add(jPanel1,   new GridBagConstraints(0, 0, 3, 1, 1.0, 1.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    this.add(jLabel1,    new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    this.add(jSlider1,     new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    this.add(jLabel2,       new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));  }}