Changeset 8474


Ignore:
Timestamp:
2004-11-05T16:25:43+13:00 (19 years ago)
Author:
mdewsnip
Message:

Changed all show() to setVisible(true) and all hide() to setVisible(false) for Java 1.5.0.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
16 edited

Legend:

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

    r6318 r8474  
    126126    Dimension screen_size = Toolkit.getDefaultToolkit().getScreenSize();
    127127    dialog.setLocation((screen_size.width - SIZE.width) / 2, (screen_size.height - SIZE.height) / 2);
    128     dialog.show();
     128    dialog.setVisible(true);
    129129    if(!authentication_cancelled) {
    130130        // Store the authentication
  • trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r8266 r8474  
    388388    if (splash != null) {
    389389        // Hide the splash screen
    390         splash.hide();
     390        splash.setVisible(false);
    391391        splash.destroy();
    392392        splash = null;
     
    429429
    430430    // Get the gui to deallocate
    431     g_man.hide();
     431    g_man.setVisible(false);
    432432    g_man.destroy();
    433433    g_man_built = false;
     
    452452    else {
    453453        JOptionPane.showMessageDialog(g_man, Dictionary.get("General.Outstanding_Processes"), Dictionary.get("General.Outstanding_Processes_Title"), JOptionPane.ERROR_MESSAGE);
    454         g_man.hide();
     454        g_man.setVisible(false);
    455455    }
    456456    }
  • trunk/gli/src/org/greenstone/gatherer/cdm/CollectionConfiguration.java

    r8358 r8474  
    355355    content_pane.add(new JScrollPane(tree), BorderLayout.CENTER);
    356356    content_pane.add(refresh_button, BorderLayout.SOUTH);
    357     dialog.show();
     357    dialog.setVisible(true);
    358358    }
    359359
  • trunk/gli/src/org/greenstone/gatherer/cdm/ParsingProgress.java

    r8473 r8474  
    8888    setLocation((screen_size.width - SIZE.width) / 2,
    8989            (screen_size.height - SIZE.height) / 2);
    90     show();
     90    setVisible(true);
    9191    }
    9292
  • trunk/gli/src/org/greenstone/gatherer/collection/SaveCollectionBox.java

    r6318 r8474  
    141141    Point loc = Gatherer.g_man.getLocation();
    142142    setLocation((frmSize.width - dlgSize.width) / 2 + loc.x, (frmSize.height - dlgSize.height) / 2 + loc.y);
    143     show();
     143    setVisible(true);
    144144
    145145    // Deallocate things we allocated here.
  • trunk/gli/src/org/greenstone/gatherer/feedback/ActionRecorderDialog.java

    r7741 r8474  
    13821382                frame.addScreenPanel(feedbackframe,img,x,y,w,h);
    13831383                }
    1384             frame.hide();
     1384            frame.setVisible(false);
    13851385            }
    13861386        else
  • trunk/gli/src/org/greenstone/gatherer/gui/AboutDialog.java

    r8332 r8474  
    152152    Rectangle frame_bounds = parent.getBounds();
    153153    setLocation(frame_bounds.x + (frame_bounds.width - SIZE.width) / 2, frame_bounds.y + (frame_bounds.height - SIZE.height) / 2);
    154     show();
     154    setVisible(true);
    155155    }
    156156    /** Listens for actions upon the close button, and when detected closes the dialog. */
     
    161161     */
    162162    public void actionPerformed(ActionEvent event) {
    163         self.hide();
     163        self.setVisible(false);
    164164        self.dispose();
    165165    }
  • trunk/gli/src/org/greenstone/gatherer/gui/DownloadProgressBar.java

    r8243 r8474  
    193193    else if(source == log_button) {
    194194        LogDialog dialog = new LogDialog(owner.getLogDocument());
    195         dialog.show();
     195        dialog.setVisible(true);
    196196        dialog = null;
    197197    }
  • trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r8356 r8474  
    423423        if (Gatherer.isGsdlRemote) {           
    424424        // consider saving???
    425         hide();
     425        setVisible(false);
    426426        }
    427427        else {
  • trunk/gli/src/org/greenstone/gatherer/gui/GatherPane.java

    r8354 r8474  
    889889        Dimension screen_size = Configuration.screen_size;
    890890        setLocation((screen_size.width - DIALOG_SIZE.width) / 2, (screen_size.height - DIALOG_SIZE.height) / 2);
    891         show();
     891        setVisible(true);
    892892        // If not cancelled create mapping.
    893893        if(!cancelled) {
  • trunk/gli/src/org/greenstone/gatherer/gui/NewFolderPrompt.java

    r8243 r8474  
    128128    Rectangle frame_bounds = Gatherer.g_man.getBounds();
    129129    setLocation(frame_bounds.x + (frame_bounds.width - SIZE.width) / 2, frame_bounds.y + (frame_bounds.height - SIZE.height) / 2);
    130     show();
     130    setVisible(true);
    131131    return name;
    132132    }
  • trunk/gli/src/org/greenstone/gatherer/gui/Splash.java

    r7314 r8474  
    5858    Dimension screen_size = Toolkit.getDefaultToolkit().getScreenSize();
    5959    setLocation((screen_size.width - size.width) / 2, (screen_size.height - size.height) / 2);
    60     show();     
     60    setVisible(true);       
    6161    }
    6262
  • trunk/gli/src/org/greenstone/gatherer/gui/URLField.java

    r8236 r8474  
    9999    panel.setLayout(new BorderLayout());
    100100    panel.add(new URLField(Color.black, Color.white, Color.white, Color.red), BorderLayout.CENTER);
    101     frame.show();
     101    frame.setVisible(true);
    102102    }
    103103}
  • trunk/gli/src/org/greenstone/gatherer/help/HelpFrame.java

    r8258 r8474  
    163163
    164164    // Make the help frame visible
    165     show();
     165    setVisible(true);
    166166    split_pane.setDividerLocation(0.2);
    167167    }
  • trunk/gli/src/org/greenstone/gatherer/util/AppendLineOnlyFileDocument.java

    r8243 r8474  
    911911    content.add(read_button, BorderLayout.SOUTH);
    912912
    913     frame.show();
     913    frame.setVisible(true);
    914914    }
    915915
  • trunk/gli/src/org/greenstone/gatherer/util/TreeModelTest.java

    r8243 r8474  
    200200    Dimension screen_size = Toolkit.getDefaultToolkit().getScreenSize();
    201201    setLocation((screen_size.width - SIZE.width) / 2, (screen_size.height - SIZE.height) / 2);
    202     show();
     202    setVisible(true);
    203203    }
    204204
Note: See TracChangeset for help on using the changeset viewer.