Skip to content

Commit

Permalink
Placed content panel within a scroll pane.
Browse files Browse the repository at this point in the history
Added button to title bar to permit maximise/restore actions on window size.
  • Loading branch information
bubblobill committed Dec 11, 2024
1 parent 5554a1c commit f20758f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,16 @@ public GenericDialog(String title, Frame parent, JPanel panel, boolean modal) {
add(scrollPane);
addComponentListener(
new ComponentAdapter() {
private void placeButtons(){
if(getSize().width == 0){
private void placeButtons() {
if (getSize().width == 0) {
return;
}
if (maximiseBtn == null || restoreBtn == null) {
addResizeButtons();
}
positionResizeButtons();
}

@Override
public void componentResized(ComponentEvent e) {
super.componentResized(e);
Expand Down

0 comments on commit f20758f

Please sign in to comment.