/hg/icedtea-web: Fixed ConsoleOutputPane UI for lower resolutions.
jkang at icedtea.classpath.org
jkang at icedtea.classpath.org
Mon Jul 28 15:36:06 UTC 2014
changeset 7973c970afd8 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=7973c970afd8
author: Jie Kang <jkang at redhat.com>
date: Mon Jul 28 11:16:35 2014 -0400
Fixed ConsoleOutputPane UI for lower resolutions.
2014-07-28 Jie Kang <jkang at redhat.com>
Fix to Java ConsoleOutputPane for lower resolutions. Addresses bug
PR1859 where part of the pane is hidden and unnaccessible when
clicking "Show Details".
* netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java
diffstat:
ChangeLog | 6 +++++
netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java | 13 ++++++----
2 files changed, 14 insertions(+), 5 deletions(-)
diffs (64 lines):
diff -r fcfceec90e2d -r 7973c970afd8 ChangeLog
--- a/ChangeLog Mon Jul 28 10:50:03 2014 -0400
+++ b/ChangeLog Mon Jul 28 11:16:35 2014 -0400
@@ -1,3 +1,9 @@
+2014-07-28 Jie Kang <jkang at redhat.com>
+ Fix to Java ConsoleOutputPane for lower resolutions. Addresses bug
+ PR1859 where part of the pane is hidden and unnaccessible when
+ clicking "Show Details".
+ * netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java
+
2014-07-28 Jie Kang <jkang at redhat.com>
Fix to Control Panel UI for lower resolutions. Addresses bug
diff -r fcfceec90e2d -r 7973c970afd8 netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java
--- a/netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java Mon Jul 28 10:50:03 2014 -0400
+++ b/netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java Mon Jul 28 11:16:35 2014 -0400
@@ -87,7 +87,9 @@
public ConsoleOutputPane(final ObservableMessagesProvider dataProvider) {
model = new ConsoleOutputPaneModel(dataProvider);
// Create final JComponents members
+
jPanel2 = new JPanel();
+ jpanel2scrollpane = new JScrollPane(jPanel2);
showHeaders = new JCheckBox();
showUser = new JCheckBox();
sortCopyAll = new JCheckBox();
@@ -668,12 +670,12 @@
addComponent(jScrollPane1, GroupLayout.DEFAULT_SIZE, 684, Short.MAX_VALUE).
addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.TRAILING).
addComponent(showHide, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 672, Short.MAX_VALUE).
- addComponent(jPanel2, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addContainerGap()))));
+ addComponent(jpanel2scrollpane, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addContainerGap()))));
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(GroupLayout.Alignment.LEADING).
addGroup(GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup().addContainerGap().
addComponent(jScrollPane1, GroupLayout.DEFAULT_SIZE, 329, Short.MAX_VALUE).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
- addComponent(jPanel2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
+ addComponent(jpanel2scrollpane, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
addComponent(showHide).addContainerGap()));
final JMenuItem tab = new JMenuItem("insert \\t");
@@ -862,11 +864,11 @@
}
private final void showHideActionPerformed(final ActionEvent evt) {
- if (jPanel2.isVisible()) {
- jPanel2.setVisible(false);
+ if (jpanel2scrollpane.isVisible()) {
+ jpanel2scrollpane.setVisible(false);
showHide.setText(Translator.R("ButShowDetails"));
} else {
- jPanel2.setVisible(true);
+ jpanel2scrollpane.setVisible(true);
showHide.setText(Translator.R("ButHideDetails"));
}
}
@@ -955,6 +957,7 @@
private final JButton copyRich;
private final JCheckBox highLight;
private final JEditorPane jEditorPane1;
+ private final JScrollPane jpanel2scrollpane;
private final JPanel jPanel2;
private final JScrollPane jScrollPane1;
private final JCheckBox mark;
More information about the distro-pkg-dev
mailing list