61 lines
2.1 KiB
Java
61 lines
2.1 KiB
Java
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
package ch.psi.mxsc;
|
|
|
|
/**
|
|
*
|
|
* @author gobbo_a
|
|
*/
|
|
public class WaterLevelPanel extends javax.swing.JPanel {
|
|
|
|
/**
|
|
* Creates new form WaterLevelPanel
|
|
*/
|
|
public WaterLevelPanel() {
|
|
initComponents();
|
|
}
|
|
|
|
/**
|
|
* This method is called from within the constructor to initialize the form.
|
|
* WARNING: Do NOT modify this code. The content of this method is always
|
|
* regenerated by the Form Editor.
|
|
*/
|
|
@SuppressWarnings("unchecked")
|
|
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
|
private void initComponents() {
|
|
|
|
progressWater = new javax.swing.JProgressBar();
|
|
|
|
setBorder(javax.swing.BorderFactory.createTitledBorder("Water Level"));
|
|
setPreferredSize(new java.awt.Dimension(72, 100));
|
|
|
|
progressWater.setMaximum(1000);
|
|
progressWater.setOrientation(1);
|
|
|
|
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
|
|
this.setLayout(layout);
|
|
layout.setHorizontalGroup(
|
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
.addGroup(layout.createSequentialGroup()
|
|
.addContainerGap(15, Short.MAX_VALUE)
|
|
.addComponent(progressWater, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
.addContainerGap(15, Short.MAX_VALUE))
|
|
);
|
|
layout.setVerticalGroup(
|
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
.addGroup(layout.createSequentialGroup()
|
|
.addContainerGap()
|
|
.addComponent(progressWater, javax.swing.GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE)
|
|
.addContainerGap())
|
|
);
|
|
}// </editor-fold>//GEN-END:initComponents
|
|
|
|
|
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
|
private javax.swing.JProgressBar progressWater;
|
|
// End of variables declaration//GEN-END:variables
|
|
}
|