Skip to content

Commit c3699f1

Browse files
committed
Allow resize
1 parent 0f3d810 commit c3699f1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/java/com/manifestsecurity/ui/ManifestSecurityDialog.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import javax.swing.JButton;
1010
import javax.swing.JComboBox;
11-
import javax.swing.JDialog;
11+
import javax.swing.JFrame;
1212
import javax.swing.JFileChooser;
1313
import javax.swing.JLabel;
1414
import javax.swing.JPanel;
@@ -40,7 +40,7 @@
4040
import java.util.Map;
4141
import java.util.Set;
4242

43-
public class ManifestSecurityDialog extends JDialog {
43+
public class ManifestSecurityDialog extends JFrame {
4444
private final ReportModel report;
4545
private final ManifestNavigator navigator;
4646
private final JComboBox<String> categoryFilter;
@@ -51,7 +51,7 @@ public class ManifestSecurityDialog extends JDialog {
5151
private List<Finding> filtered;
5252

5353
public ManifestSecurityDialog(Frame owner, ReportModel report, ManifestNavigator navigator) {
54-
super(owner, buildTitle(report), false);
54+
super(buildTitle(report));
5555
this.report = report;
5656
this.navigator = navigator;
5757
this.filtered = new ArrayList<>(report.getFindings());
@@ -121,6 +121,8 @@ public void mouseClicked(MouseEvent e) {
121121
add(filterPanel, BorderLayout.NORTH);
122122
add(split, BorderLayout.CENTER);
123123
add(actions, BorderLayout.SOUTH);
124+
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
125+
setResizable(true);
124126
setSize(1100, 700);
125127
setLocationRelativeTo(owner);
126128

0 commit comments

Comments
 (0)