Procedure

This test involves testing the numerous properties on several Swing components. Each java file within the test jar file is dedicated to one specfic JavaBean, (JButton, JLabel, etc). Every one of the beans’ parameters has been somehow altered from its default value.
 

Setup

Import the marathon beans test jar file into an Eclipse project.


To perform the test, go through the following steps for each java file:

Test Files

File name:                        MBTJButton.java
Correct graphical output:

Remember to compare the property sheet values with the setXXX() statements in the source code, as
is described in the instructions above.
Things to Verify:

File name:                        MBTJCheckBox.java
Correct graphical output:

Things to Verify:

 

File name:                        MBTJToggleButton.java
Correct graphical output:

Things to Verify:

 

File name:                        MBTJRadioButton.java
Correct graphical output:

Things to Verify:


File name:                        MBTJLabel.java
Correct graphical output:

Things to Verify:


File name:                        MBTJTextField.java
Correct graphical output:

Things to Verify:

File name:                        MBTJPasswordField.java
Correct graphical output:

Things to Verify:

 



File name:                        MBTJTextArea.java
Correct graphical output:

Things to Verify:

 


File name:                        MBTJSlider.java
Correct graphical output:

Things to Verify:

 

File name:                        MBTJScrollBar.java
Correct graphical output:




File name:                        
MBTJList.java
Correct graphical output:
This is how it looks in the Visual Editor. Notice the blue circle "i" which indicates an informational error. This is because the property 'selectedIndices' is set with an int array in the source code and this type of expression is too complicated to be evaluated in the VM. When the code is actually run, the list items will be visible.
Note: The selectedIndices property is not in the beaninfo and therefore does not show in the property sheet viewer. It only shows in the source code


This is how it looks when its running in which the list items show up.



File name:                        MBTJComboBox.java
Correct graphical output:


File name:                        MBTJProgressBar.java
Correct graphical output: