From: Niki Roo Date: Mon, 4 May 2020 08:11:10 +0000 (+0200) Subject: NonImageViewer: fix space issue X-Git-Tag: fanfix-swing-1.2.0~34 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=e4e77a58bd74d405c1e02d30d501bf8a68e1cd01;p=fanfix-swing.git NonImageViewer: fix space issue --- 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);