Changeset 37337


Ignore:
Timestamp:
2023-02-21T17:35:22+13:00 (4 weeks ago)
Author:
davidb
Message:

Newer version of setSize() introduced to support the new init sequence for webSwing GLI that requires login first before GLI window displayed; Fine-tuning of colours used.

Location:
main/trunk/gli/src/org/greenstone/gatherer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r37330 r37337  
    787787        // Ensure width and height are reasonable
    788788        size = bounds.getSize();
     789       
    789790        if (size.width < 640) {
    790791            size.width = 640;
     
    799800            size.height = Configuration.screen_size.height;
    800801        }
    801 
     802       
    802803        if (!g_man_built) {
    803 
     804                g_man.setSize(size);           
    804805            g_man.display();
    805806
  • main/trunk/gli/src/org/greenstone/gatherer/download/DownloadScrollPane.java

    r31880 r37337  
    7373    job = null;
    7474    job_queue = new Vector();
     75
     76    Color colour_ctb = Configuration.getColor("coloring.collection_tree_background", false);
     77
    7578    filler_pane = new JPanel();
     79    filler_pane.setBackground(colour_ctb);
     80
    7681    list_pane = new JPanel();
    7782    list_pane.setLayout(new BoxLayout(list_pane, BoxLayout.Y_AXIS));
     83    list_pane.setBackground(colour_ctb);
     84   
    7885    list_scroll = new JScrollPane(list_pane);
    7986    }
  • main/trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r36580 r37337  
    143143    }
    144144
    145 
     145    public void setSize(Dimension size)
     146    {
     147    this.size = size;
     148    super.setSize(size);
     149    }
     150   
    146151    public void windowGainedFocus(WindowEvent e)
    147152    {
Note: See TracChangeset for help on using the changeset viewer.