Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15456/src/net/sourceforge/bprocessor/gui/attrview
Modified Files:
AttributeView.java
Log Message:
Small adjustment. Back, and Front labels remove, and more decimals added.
Index: AttributeView.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/AttributeView.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** AttributeView.java 23 Jan 2006 02:46:59 -0000 1.28
--- AttributeView.java 25 Jan 2006 09:32:29 -0000 1.29
***************
*** 262,267 ****
add(x);
! int xval = (int) (o.getX() * 100);
! JTextField xEdit = new JTextField((Double.toString(((double) xval) / 100)));
con.gridwidth = GridBagConstraints.REMAINDER;
con.weightx = 1.0;
--- 262,267 ----
add(x);
! int xval = (int) (o.getX() * 10000);
! JTextField xEdit = new JTextField((Double.toString(((double) xval) / 10000)));
con.gridwidth = GridBagConstraints.REMAINDER;
con.weightx = 1.0;
***************
*** 280,285 ****
add(y);
! int yval = (int) (o.getY() * 100);
! JTextField yEdit = new JTextField((Double.toString(((double) yval) / 100)));
con.gridwidth = GridBagConstraints.REMAINDER;
con.weightx = 1.0;
--- 280,285 ----
add(y);
! int yval = (int) (o.getY() * 10000);
! JTextField yEdit = new JTextField((Double.toString(((double) yval) / 10000)));
con.gridwidth = GridBagConstraints.REMAINDER;
con.weightx = 1.0;
***************
*** 298,303 ****
add(z);
! int zval = (int) (o.getZ() * 100);
! JTextField zEdit = new JTextField((Double.toString(((double) zval) / 100)));
con.gridwidth = GridBagConstraints.REMAINDER;
con.weightx = 1.0;
--- 298,303 ----
add(z);
! int zval = (int) (o.getZ() * 10000);
! JTextField zEdit = new JTextField((Double.toString(((double) zval) / 10000)));
con.gridwidth = GridBagConstraints.REMAINDER;
con.weightx = 1.0;
***************
*** 355,360 ****
add(length);
! int l = (int) (o.getLength() * 100);
! JTextField lengthEdit = new JTextField((Double.toString(((double) l) / 100)));
con.gridwidth = GridBagConstraints.REMAINDER;
con.weightx = 1.0;
--- 355,360 ----
add(length);
! int l = (int) (o.getLength() * 10000);
! JTextField lengthEdit = new JTextField((Double.toString(((double) l) / 10000)));
con.gridwidth = GridBagConstraints.REMAINDER;
con.weightx = 1.0;
***************
*** 404,422 ****
layout.setConstraints(hfiller, con);
add(hfiller);
!
! JLabel emptyLine = new JLabel(" ");
! con.weightx = 1;
! con.gridwidth = GridBagConstraints.REMAINDER;
! layout.setConstraints(emptyLine, con);
! add(emptyLine);
!
! JLabel fcolor = new JLabel("Front: ");
! con.weightx = 0;
! con.gridwidth = GridBagConstraints.REMAINDER;
! layout.setConstraints(fcolor, con);
! fcolor.setFont(fontBold);
! add(fcolor);
!
!
JLabel fspace = new JLabel("Space: ");
con.weightx = 0;
--- 404,408 ----
layout.setConstraints(hfiller, con);
add(hfiller);
!
JLabel fspace = new JLabel("Space: ");
con.weightx = 0;
***************
*** 436,439 ****
--- 422,426 ----
layout.setConstraints(frontSpaceName, con);
con.weightx = 1;
+ con.fill = GridBagConstraints.HORIZONTAL;
con.gridwidth = GridBagConstraints.REMAINDER;
layout.setConstraints(frontSpaceName, con);
***************
*** 455,473 ****
front.addMouseListener(new MyMouseListener(o, true)); //true = front color to be changed
}
!
! JLabel el = new JLabel(" ");
! con.weightx = 1;
! con.fill = GridBagConstraints.NONE;
! con.gridwidth = GridBagConstraints.REMAINDER;
! layout.setConstraints(el, con);
! add(el);
!
! JLabel bcolor = new JLabel("Back: ");
! con.weightx = 0;
! con.gridwidth = GridBagConstraints.REMAINDER;
! layout.setConstraints(bcolor, con);
! bcolor.setFont(fontBold);
! add(bcolor);
!
JLabel bspace = new JLabel("Space: ");
con.weightx = 0;
--- 442,446 ----
front.addMouseListener(new MyMouseListener(o, true)); //true = front color to be changed
}
!
JLabel bspace = new JLabel("Space: ");
con.weightx = 0;
|