package com.codegym.task.task32.task3209;
import javax.swing.text.html.HTMLDocument;
import java.io.File;
public class Controller {
private View view;
private HTMLDocument document;
private File currentFile;
public Controller(View view) {
this.view = view;
}
public void init() {}
public void exit() {
System.exit(0);
}
public static void main(String[] args) {
View view = new View();
Controller controller = new Controller(view);
view.setController(controller);
view.init();
controller.init();
}
public static class ExceptionHandler {
public static void log(Exception e) {
}
}
}
TIPS FOR VIEW CONSTRUCTOR
Under discussion
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
KIN SOCHEAT
19 July 2020, 02:10
UIManager.setLookAndFeel(new MetalLookAndFeel());
+2
Satya Vath
14 April 2020, 08:52
Use This
0
Surya
24 July 2020, 19:55
FYI,
This worked for me.
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
+2