/*
* 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 nbtool.gui.utilitypanes;
/**
*
* @author pkoch
*/
public class CameraOffsetsPanel extends javax.swing.JPanel {
/**
* Creates new form CalibratePanel
*/
public CameraOffsetsPanel() {
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">
private void initComponents() {
Options = new javax.swing.JPanel();
sentToRobotButton = new javax.swing.JButton();
saveToConfigButton = new javax.swing.JButton();
jScrollPane1 = new javax.swing.JScrollPane();
displayTable = new javax.swing.JTable();
goButton = new javax.swing.JButton();
Options.setBackground(new java.awt.Color(242, 242, 242));
Options.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 2, true), "camera offset calibration", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("PT Serif", 1, 14))); // NOI18N
sentToRobotButton.setText("Send to robot");
saveToConfigButton.setText("save to config file");
displayTable.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
},
new String [] {
"robot", "camera", "status", "d-roll", "d-tilt", "given", "used"
}
) {
boolean[] canEdit = new boolean [] {
false, false, false, false, false, false, false
};
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
displayTable.setFocusable(false);
displayTable.setShowGrid(false);
jScrollPane1.setViewportView(displayTable);
goButton.setText("go!");
javax.swing.GroupLayout OptionsLayout = new javax.swing.GroupLayout(Options);
Options.setLayout(OptionsLayout);
OptionsLayout.setHorizontalGroup(
OptionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, OptionsLayout.createSequentialGroup()
.addContainerGap()
.addGroup(OptionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
.addGroup(OptionsLayout.createSequentialGroup()
.addComponent(goButton)
.addGap(1, 1, 1)
.addComponent(sentToRobotButton)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(saveToConfigButton)
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())
);
OptionsLayout.setVerticalGroup(
OptionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(OptionsLayout.createSequentialGroup()
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(OptionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(saveToConfigButton)
.addComponent(sentToRobotButton)
.addComponent(goButton))
.addContainerGap())
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addComponent(Options, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(Options, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
}// </editor-fold>
// Variables declaration - do not modify
private javax.swing.JPanel Options;
protected javax.swing.JTable displayTable;
protected javax.swing.JButton goButton;
private javax.swing.JScrollPane jScrollPane1;
protected javax.swing.JButton saveToConfigButton;
protected javax.swing.JButton sentToRobotButton;
// End of variables declaration
}