This is an automated email from the ASF dual-hosted git repository.
grobmeier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-chainsaw.git
The following commit(s) were added to refs/heads/master by this push:
new 53367f5 grouped show/display methods
53367f5 is described below
commit 53367f59e3a319f9a70e5aadd62f3f778e2492db
Author: Christian Grobmeier <[email protected]>
AuthorDate: Sun Dec 17 19:48:47 2023 +0100
grouped show/display methods
---
.../org/apache/log4j/chainsaw/logui/LogUI.java | 44 +++++++++++-----------
1 file changed, 23 insertions(+), 21 deletions(-)
diff --git a/src/main/java/org/apache/log4j/chainsaw/logui/LogUI.java
b/src/main/java/org/apache/log4j/chainsaw/logui/LogUI.java
index 7425e2f..f17570f 100644
--- a/src/main/java/org/apache/log4j/chainsaw/logui/LogUI.java
+++ b/src/main/java/org/apache/log4j/chainsaw/logui/LogUI.java
@@ -436,6 +436,29 @@ public class LogUI extends JFrame {
});
}
+ public void showAboutBox() {
+ if (aboutBox == null) {
+ aboutBox = new ChainsawAbout(this);
+ }
+
+ aboutBox.setVisible(true);
+ }
+
+ void displayPanel(String panelName, boolean display) {
+ Component p = panelMap.get(panelName);
+
+ int index = tabbedPane.indexOfTab(panelName);
+
+ if ((index == -1) && display) {
+ tabbedPane.addTab(panelName, p);
+ }
+
+ if ((index > -1) && !display) {
+ tabbedPane.removeTabAt(index);
+ }
+ }
+
+
public ChainsawStatusBar getStatusBar() {
return statusBar;
}
@@ -476,14 +499,6 @@ public class LogUI extends JFrame {
SwingUtilities.invokeLater(r);
}
- public void showAboutBox() {
- if (aboutBox == null) {
- aboutBox = new ChainsawAbout(this);
- }
-
- aboutBox.setVisible(true);
- }
-
Map<String, Boolean> getPanels() {
Map<String, Boolean> result = new HashMap<>();
Set<Map.Entry<String, Component>> panelSet = panelMap.entrySet();
@@ -497,19 +512,6 @@ public class LogUI extends JFrame {
return result;
}
- void displayPanel(String panelName, boolean display) {
- Component p = panelMap.get(panelName);
-
- int index = tabbedPane.indexOfTab(panelName);
-
- if ((index == -1) && display) {
- tabbedPane.addTab(panelName, p);
- }
-
- if ((index > -1) && !display) {
- tabbedPane.removeTabAt(index);
- }
- }
/**
* Returns the currently selected LogPanel, if there is one, otherwise null