Public Methods |
| void | setButtonState (boolean state) |
| | Enables or disables button go. More...
|
| void | reset (int N) |
| | Resets components of the panel for initial stage. More...
|
Private Methods |
| | ExpertPanel (JApplet1 applet) |
| | Constructor. More...
|
Private Attributes |
|
JApplet1 | applet |
| | applet component.
|
|
int | leftover |
| | RAM leftover from previous stage.
|
|
int | curr_stage |
| | current stage.
|
|
GridBagLayout | gridbag = new GridBagLayout() |
| | GridBag layout.
|
|
GridBagConstraints | c = new GridBagConstraints() |
| | constraints for gridbag.
|
|
StageInput | stage_input |
| | panel for stage input.
|
|
JLabel | JLabel2 = new JLabel("To maximize utility, You should buy this amount of RAM at stage 1:", JLabel.CENTER) |
|
JTextField | user_q = new JTextField("10",4) |
| | text field for leftover input.
|
|
JTextField | sys_d = new JTextField("???",4) |
| | text field for optimum supply output for stage curr_stage.
|
|
JButton | go |
| | button to start calculations.
|