Commit 2b0a81ec authored by nargessalehi98's avatar nargessalehi98

Add setMap method .

parent 0e54dc96
...@@ -106,7 +106,8 @@ public class MainFrame extends JFrame { ...@@ -106,7 +106,8 @@ public class MainFrame extends JFrame {
} }
} }
class OfflineModeAction implements ActionListener{
class OfflineModeAction implements ActionListener {
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
...@@ -114,7 +115,7 @@ public class MainFrame extends JFrame { ...@@ -114,7 +115,7 @@ public class MainFrame extends JFrame {
JFrame dialogFrame = new JFrame("Change settings "); JFrame dialogFrame = new JFrame("Change settings ");
dialogFrame.setResizable(false); dialogFrame.setResizable(false);
dialogFrame.setLayout(new FlowLayout()); dialogFrame.setLayout(new FlowLayout());
dialogFrame.setBounds(700,450,300,85); dialogFrame.setBounds(700, 450, 300, 85);
JLabel settingLabel = new JLabel("Do you want to play with current setting ?"); JLabel settingLabel = new JLabel("Do you want to play with current setting ?");
dialogFrame.add(settingLabel); dialogFrame.add(settingLabel);
...@@ -142,8 +143,10 @@ public class MainFrame extends JFrame { ...@@ -142,8 +143,10 @@ public class MainFrame extends JFrame {
dialogFrame.setVisible(true); dialogFrame.setVisible(true);
} }
} }
class OnlineModeAction implements ActionListener{
class OnlineModeAction implements ActionListener {
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment