Author: chatellier Date: 2011-02-02 10:43:56 +0000 (Wed, 02 Feb 2011) New Revision: 650 Log: Fix jscrollpane (temporary) Modified: trunk/coser-ui/src/main/java/fr/ifremer/coser/ui/CoserFrameHandler.java Modified: trunk/coser-ui/src/main/java/fr/ifremer/coser/ui/CoserFrameHandler.java =================================================================== --- trunk/coser-ui/src/main/java/fr/ifremer/coser/ui/CoserFrameHandler.java 2011-02-02 10:39:31 UTC (rev 649) +++ trunk/coser-ui/src/main/java/fr/ifremer/coser/ui/CoserFrameHandler.java 2011-02-02 10:43:56 UTC (rev 650) @@ -39,9 +39,10 @@ import javax.swing.JDialog; import javax.swing.JFileChooser; import javax.swing.JOptionPane; +import javax.swing.JScrollPane; +import javax.swing.JTextArea; import javax.swing.filechooser.FileFilter; -import jaxx.runtime.swing.AboutPanel; import jaxx.runtime.swing.editor.config.ConfigUI; import jaxx.runtime.swing.editor.config.ConfigUIHelper; @@ -256,7 +257,14 @@ aboutPanel.init(); aboutPanel.showInDialog(view, true);*/ - AboutFrame aboutFrame = new AboutFrame(); + AboutFrame aboutFrame = new AboutFrame() { + @Override + protected Component getLicenseTab() { + JTextArea textArea = (JTextArea)super.getLicenseTab(); + textArea.setCaretPosition(0); + return new JScrollPane(textArea); + } + }; aboutFrame.setTitle(_("coser.ui.about.title")); aboutFrame.setAboutHtmlText(_("coser.ui.about.about", config.getApplicationVersion())); aboutFrame.setIconPath("/icons/logo300.png");
participants (1)
-
chatellierï¼ users.labs.libre-entreprise.org