source: greenstone3/trunk/src/java/org/greenstone/server/Server2Settings.java@ 18690

Last change on this file since 18690 was 18668, checked in by ak19, 15 years ago

Server2Settings's createServletPanel now returns a JPanel with a combobox containing the GS2 library URL

File size: 759 bytes
Line 
1package org.greenstone.server;
2
3import javax.swing.*;
4import java.awt.BorderLayout;
5
6import org.greenstone.server.BaseServerSettings;
7
8public class Server2Settings extends BaseServerSettings
9{
10 public Server2Settings(BaseServer server)
11 {
12 super(server);
13 }
14
15 protected JPanel createServletPanel()
16 {
17 JLabel prefix_label = new JLabel(server.dictionary.get("ServerSettings.Library_Prefix"));
18
19 JComboBox prefix_combobox = new JComboBox();
20 prefix_combobox.setEditable(true);
21 prefix_combobox.addItem(server.getBrowserURL());
22
23 JPanel comb_panel = new JPanel();
24 comb_panel.setLayout(new BorderLayout());
25 comb_panel.add(prefix_label, BorderLayout.NORTH);
26 comb_panel.add(prefix_combobox, BorderLayout.CENTER);
27 return comb_panel;
28 }
29
30}
Note: See TracBrowser for help on using the repository browser.