JPanels..
mas <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.user-interface |
|---|---|
| Message-ID | <[email protected]> |
hye..i am new to netbeans UI..could u please help me with this
i'm using two panels in a frame.
the first panel is to calculate a dimension.
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
final double HEIGHT=0.75;
final double LENGTH=0.35;
final double WIDTH=0.35;
final double FURN_DIM = HEIGHT*WIDTH*LENGTH;
double furn_needed,d;
//d = room dimension
** i need to call the room dimension here in order to proceed to next
function.
}
private void exitActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
System.exit(0);
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
height.setText(" ");
length.setText(" ");
width.setText(" ");
}
private void calcActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
double h,w,l,d;
if (height.getText() != " " && width.getText()!=" " &&
width.getText()!=" ")
{
h = Double.parseDouble(height.getText());
w = Double.parseDouble(width.getText());
l = Double.parseDouble(length.getText());
d = h*w*l;
++The room dimension is here
dimension.setText(String.valueOf(d));
}
else JOptionPane.showMessageDialog(null,"room dimension","Please enter
room hieght,length and width in metre",JOptionPane.WARNING_MESSAGE);
}
thank u in advanced.
--
View this message in context: http://www.nabble.com/JPanels..-tf3342820.html#a9296970
Sent from the Netbeans - UI mailing list archive at Nabble.com.