Enlarged the text area in progress dialogs
This commit is contained in:
parent
91be0845e5
commit
d8c22515a0
3 changed files with 5 additions and 2 deletions
|
@ -18,6 +18,8 @@ import net.vhati.ftldat.FolderPack;
|
|||
import net.vhati.ftldat.FTLPack;
|
||||
import net.vhati.ftldat.PkgPack;
|
||||
|
||||
import net.vhati.modmanager.ui.ProgressDialog;
|
||||
|
||||
|
||||
public class DatExtractDialog extends ProgressDialog {
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ import javax.swing.JDialog;
|
|||
import javax.swing.SwingUtilities;
|
||||
|
||||
import net.vhati.modmanager.core.ModPatchObserver;
|
||||
import net.vhati.modmanager.ui.ProgressDialog;
|
||||
|
||||
|
||||
public class ModPatchDialog extends ProgressDialog implements ModPatchObserver {
|
||||
|
|
|
@ -44,7 +44,7 @@ public class ProgressDialog extends JDialog implements ActionListener {
|
|||
progressHolder.add( progressBar );
|
||||
getContentPane().add( progressHolder, BorderLayout.NORTH );
|
||||
|
||||
statusArea = new JTextArea();
|
||||
statusArea = new JTextArea( 5, 50 );
|
||||
statusArea.setLineWrap( true );
|
||||
statusArea.setWrapStyleWord( true );
|
||||
statusArea.setFont( statusArea.getFont().deriveFont( 13f ) );
|
||||
|
@ -68,7 +68,7 @@ public class ProgressDialog extends JDialog implements ActionListener {
|
|||
continueHolder.add( Box.createHorizontalGlue() );
|
||||
getContentPane().add( continueHolder, BorderLayout.SOUTH );
|
||||
|
||||
this.setSize( 400, 160 );
|
||||
this.pack();
|
||||
this.setMinimumSize( this.getPreferredSize() );
|
||||
this.setLocationRelativeTo( owner );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue