Changeset 18668

Show
Ignore:
Timestamp:
13.03.2009 13:07:41 (10 years ago)
Author:
ak19
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/server/Server2Settings.java

    r18558 r18668  
    22 
    33import javax.swing.*; 
    4  
     4import java.awt.BorderLayout; 
    55 
    66import org.greenstone.server.BaseServerSettings; 
    77 
    88public class Server2Settings extends BaseServerSettings 
    9  
    109{ 
    1110    public Server2Settings(BaseServer server)  
     
    1615    protected JPanel createServletPanel() 
    1716    { 
    18     return null; 
     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; 
    1928    } 
    2029