mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 04:22:05 +01:00
Makes the "Smack Info" tab prettier
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2208 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
3abb8b109c
commit
ba65acf8c5
1 changed files with 10 additions and 5 deletions
|
@ -232,9 +232,11 @@ class EnhancedDebuggerWindow {
|
|||
field.setBorder(null);
|
||||
versionPanel.add(field);
|
||||
informationPanel.add(versionPanel);
|
||||
//informationPanel.add(Box.createVerticalGlue());
|
||||
|
||||
// Add the list of installed IQ Providers
|
||||
JPanel iqProvidersPanel = new JPanel();
|
||||
iqProvidersPanel.setLayout(new GridLayout(1, 1));
|
||||
iqProvidersPanel.setBorder(BorderFactory.createTitledBorder("Installed IQ Providers"));
|
||||
Vector providers = new Vector();
|
||||
for (Iterator it = ProviderManager.getIQProviders(); it.hasNext();) {
|
||||
Object provider = it.next();
|
||||
|
@ -242,10 +244,13 @@ class EnhancedDebuggerWindow {
|
|||
(provider.getClass() == Class.class ? provider : provider.getClass().getName()));
|
||||
}
|
||||
JList list = new JList(providers);
|
||||
list.setBorder(BorderFactory.createTitledBorder("Installed IQ Providers"));
|
||||
informationPanel.add(new JScrollPane(list));
|
||||
iqProvidersPanel.add(new JScrollPane(list));
|
||||
informationPanel.add(iqProvidersPanel);
|
||||
|
||||
// Add the list of installed Extension Providers
|
||||
JPanel extensionProvidersPanel = new JPanel();
|
||||
extensionProvidersPanel.setLayout(new GridLayout(1, 1));
|
||||
extensionProvidersPanel.setBorder(BorderFactory.createTitledBorder("Installed Extension Providers"));
|
||||
providers = new Vector();
|
||||
for (Iterator it = ProviderManager.getExtensionProviders(); it.hasNext();) {
|
||||
Object provider = it.next();
|
||||
|
@ -253,8 +258,8 @@ class EnhancedDebuggerWindow {
|
|||
(provider.getClass() == Class.class ? provider : provider.getClass().getName()));
|
||||
}
|
||||
list = new JList(providers);
|
||||
list.setBorder(BorderFactory.createTitledBorder("Installed Extension Providers"));
|
||||
informationPanel.add(new JScrollPane(list));
|
||||
extensionProvidersPanel.add(new JScrollPane(list));
|
||||
informationPanel.add(extensionProvidersPanel);
|
||||
|
||||
tabbedPane.add("Smack Info", informationPanel);
|
||||
|
||||
|
|
Loading…
Reference in a new issue