Ignore:
Timestamp:
2000-11-20T16:38:13+13:00 (24 years ago)
Author:
paynter
Message:

Eliminated all calls to getSize() and setSize() and replaced them with
size() and resize(). This is a backwards step in the sense that size and
resize are deprecated, but setSize and getSize don't work on some browsers.

Location:
trunk/gsdl/src/phind/client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/phind/client/ResultCanvas.java

    r1680 r1681  
    213213
    214214    // calculate the canvas size, margins, and spacing
    215     Dimension canvasSize = getSize();
     215   
     216    // Note: the size() method is deprecated, but getSize fails in NetScape 4
     217    // Dimension canvasSize = getSize();
     218    Dimension canvasSize = size();
    216219
    217220    g.setFont(areaPlain);
     
    443446            url = new URL(address);
    444447            System.out.println("URL selected: " + url.toString());
    445             phind.getAppletContext().showDocument(url, "phindselect");
     448            phind.getAppletContext().showDocument(url);
    446449            } catch (Exception e) {
    447450            System.out.println("URL error: " + e.toString());
  • trunk/gsdl/src/phind/client/ResultTitle.java

    r1626 r1681  
    6767    bold  = phind.boldFont;
    6868   
    69     Dimension d = getSize();
     69    // Note: the size() and resize() methods are deprecated, but the newer
     70    // getSize() and setSize() methods fail in NetScape 4
     71    //Dimension d = getSize();
     72    Dimension d = size();
    7073    d.height = phind.fontSize + 10;
    71     setSize(d);
     74    //setSize(d);
     75    resize(d);
    7276   
    7377  }
     
    8084
    8185    // calculate the canvas size, margins, and spacing
    82     Dimension canvasSize = getSize();
     86    Dimension canvasSize = size();
    8387   
    8488    g.setFont(plain);
     
    8690    int y = phind.fontSize + 5;
    8791
    88     int rightMargin = canvas.getSize().width;
     92    int rightMargin = canvas.size().width;
    8993    int secondColumn = rightMargin - margin;
    9094    int firstColumn = secondColumn - margin;
Note: See TracChangeset for help on using the changeset viewer.