To convert from AWT to AFC, instances of java.awt.Panel should be transformed into instances of com.ms.ui.UIPanel.
Panel extends Container: be sure to see its changes.
AFC's UIPanel class is largely similar to AWT's Panel class, with one advantage: panels can be created with a number of different edge styles, either by using setEdge() or by including the style in the constructor. The edge types are explained in Container.
This is the set of changes you need to make to port all Panel methods to UIPanel methods. Any method not listed here or below does not need to be changed.
AWT Code | AFC Code | Comments |
Panel() | UIPanel() or UIPanel(int) |
The int refers to the style--see above. |
Panel(LayoutManager) | myPanel = new
Panel(); myPanel.setLayout(LayoutManager) |