All Packages Class Hierarchy This Package Previous Next Index
Class duckMachine.GUI.RegPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----duckMachine.GUI.RegPanel
- public class RegPanel
- extends Panel
A panel for a register like the PC, the IR, or the ACC.
-
RegPanel(String, Word, boolean)
-
-
getTextField()
- If the value can be edited, somebody will want to add a listener
to the textfield.
-
updatePanel(Word)
-
RegPanel
public RegPanel(String name,
Word val,
boolean canEdit)
getTextField
public TextField getTextField()
- If the value can be edited, somebody will want to add a listener
to the textfield. We are not responsible for this; we just return
the textfield to interested clients.
updatePanel
public void updatePanel(Word newval)
All Packages Class Hierarchy This Package Previous Next Index