-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
5.0
-
Fix Understood
-
generic
-
generic
Right now following are the two L&F implementations which constants in them
GTK
Synth
These constants files either shouldn't be there and constants should be moved
to SwingConstants, Or either they should have only those constants which are
specific to that look and feel and shouldn't declare again those constants which
already defined in SwingConstants
for eg.
SwingConstants have following declarations
/////// SwingConstants declaration snippet start /////////////
/**
* Box-orientation constant used to specify the top of a box.
*/
public static final int TOP = 1;
/**
* Box-orientation constant used to specify the left side of a box.
*/
public static final int LEFT = 2;
/**
* Box-orientation constant used to specify the bottom of a box.
*/
public static final int BOTTOM = 3;
/**
* Box-orientation constant used to specify the right side of a box.
*/
public static final int RIGHT = 4;
/////// SwingConstants declaration snippet end /////////////
Now these same variables are again declared in GTKConstants
/////// GTKConstants declaration snippet start /////////////
public static final int LEFT = 0;
public static final int RIGHT = 1;
public static final int TOP = 2;
public static final int BOTTOM = 3;
/////// GTKConstants declaration snippet end /////////////
Presence of variables of same kind in two different public interfaces
not only confuses the user but then it become problem of conversion
when there is use of SwingConstants instead of GTKConstants, Right now
this conversion has been done in GTKLookAndFeel class by a method with
package access.
###@###.### 2004-03-02
GTK
Synth
These constants files either shouldn't be there and constants should be moved
to SwingConstants, Or either they should have only those constants which are
specific to that look and feel and shouldn't declare again those constants which
already defined in SwingConstants
for eg.
SwingConstants have following declarations
/////// SwingConstants declaration snippet start /////////////
/**
* Box-orientation constant used to specify the top of a box.
*/
public static final int TOP = 1;
/**
* Box-orientation constant used to specify the left side of a box.
*/
public static final int LEFT = 2;
/**
* Box-orientation constant used to specify the bottom of a box.
*/
public static final int BOTTOM = 3;
/**
* Box-orientation constant used to specify the right side of a box.
*/
public static final int RIGHT = 4;
/////// SwingConstants declaration snippet end /////////////
Now these same variables are again declared in GTKConstants
/////// GTKConstants declaration snippet start /////////////
public static final int LEFT = 0;
public static final int RIGHT = 1;
public static final int TOP = 2;
public static final int BOTTOM = 3;
/////// GTKConstants declaration snippet end /////////////
Presence of variables of same kind in two different public interfaces
not only confuses the user but then it become problem of conversion
when there is use of SwingConstants instead of GTKConstants, Right now
this conversion has been done in GTKLookAndFeel class by a method with
package access.
###@###.### 2004-03-02