From e4e77a58bd74d405c1e02d30d501bf8a68e1cd01 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Mon, 4 May 2020 10:11:10 +0200 Subject: [PATCH] NonImageViewer: fix space issue --- src/be/nikiroo/fanfix_swing/gui/viewer/ViewerNonImages.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/be/nikiroo/fanfix_swing/gui/viewer/ViewerNonImages.java b/src/be/nikiroo/fanfix_swing/gui/viewer/ViewerNonImages.java index 53175b13..9f128fe3 100644 --- a/src/be/nikiroo/fanfix_swing/gui/viewer/ViewerNonImages.java +++ b/src/be/nikiroo/fanfix_swing/gui/viewer/ViewerNonImages.java @@ -2,6 +2,7 @@ package be.nikiroo.fanfix_swing.gui.viewer; import java.awt.BorderLayout; import java.awt.Color; +import java.awt.Dimension; import java.awt.Font; import java.awt.Rectangle; import java.awt.event.ActionEvent; @@ -131,6 +132,7 @@ public class ViewerNonImages extends JFrame { descPane.add(descLabel, BorderLayout.SOUTH); area.setSize(scroll.getViewport().getSize()); + area.setPreferredSize(this.getSize()); // make it as big as possible area.requestFocus(); this.add(toolbarTitle); -- 2.27.0