repositories
/
Persons_Comparator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
But all person displaying related information into the View and add a panel for the...
[Persons_Comparator.git]
/
src
/
MainWindowsView.java
diff --git
a/src/MainWindowsView.java
b/src/MainWindowsView.java
index 3fab8e02b774161fcce1767236b8fdc3f2e03e3c..85470ff4636bc67730f5ca54eff5d8e34cc38af9 100644
(file)
--- a/
src/MainWindowsView.java
+++ b/
src/MainWindowsView.java
@@
-11,7
+11,7
@@
public class MainWindowsView extends JFrame {
MainWindowsView(String title, JPanel panel) {
//Create and set up the window.
setTitle(title);
MainWindowsView(String title, JPanel panel) {
//Create and set up the window.
setTitle(title);
- setSize(
300, 300
);
+ setSize(
panel.getPreferredSize()
);
setLocationRelativeTo(null);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLocationRelativeTo(null);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
@@
-34,7
+34,7
@@
public class MainWindowsView extends JFrame {
/**
* Create menu that support cut/copy/paste.
*/
/**
* Create menu that support cut/copy/paste.
*/
- p
ublic
JMenuBar createMenuBar() {
+ p
rivate
JMenuBar createMenuBar() {
JMenuItem menuItem;
JMenuBar menuBar = new JMenuBar();
JMenuItem menuItem;
JMenuBar menuBar = new JMenuBar();