public final class MainPanel extends Object
Constructor and Description |
---|
MainPanel(Observable menu)
Creates the main panel.
|
Modifier and Type | Method and Description |
---|---|
JPanel |
get()
Returns the JPanel object.
|
PortTextField |
getPortText()
Returns reference to portText field.
|
SaveMsgField |
getSaveMsgTextField()
Returns reference to saveMsgTextField.
|
public MainPanel(Observable menu)
To create the main panel, the method will first have to handle components interactions by adding observers to observable elements, then the method will build the GUI by placing all the components in the main panel.
menu
- the menu bar which will notify the directory file chooser.public JPanel get()
public PortTextField getPortText()
public SaveMsgField getSaveMsgTextField()
Copyright © 2015. All rights reserved.