AWTClass to AFCClass

To convert from AWT to AFC, instances of java.awt.XXXX should be transformed into instances of com.ms.XXXXX. <should have links to these, if we can sync that up>

Purpose and Usage

AWT only allows blah: we allow blah.

 

Porting

This is the set of changes you need to make to port all XXXX methods to XXXX methods. Any method not listed here or below does not need to be changed.

 

AWT Code AFC Code Comments
Checkbox(String, boolean) UICheckButton(String);
(UICheckButton).setChecked(boolean)
Better to use UIComponents
(see above)
getLabel() getName()  

 

Unsupported Methods

Some methods in java.awt.XXXXX are not directly supported in com.ms.XXXXX. Those methods and suggested changes are described here.

 

AWT Code/Suggested AFC Code Comments
Checkbox(String, boolean, CheckboxGroup)

UICheckButton(String);
(UICheckButton).setChecked(boolean)

AFC does not have a CheckboxGroup: see that page
for more information.

Checkbox(String, CheckboxGroup, boolean)

UICheckButton(String);
(UICheckButton).setChecked(boolean)

AFC does not have a CheckboxGroup: see that page
for more information.