Ignore:
Timestamp:
2003-10-07T14:48:08+13:00 (21 years ago)
Author:
mdewsnip
Message:

Could it be I've finished adding tooltips?? Why yes, very nearly... and a big "hallelulah" for that.

Location:
trunk/gli/src/org/greenstone/gatherer/gui/tree
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/tree/DragTree.java

    r5571 r5590  
    1111import javax.swing.event.*;
    1212import javax.swing.tree.*;
     13import org.greenstone.gatherer.Dictionary;
    1314import org.greenstone.gatherer.Gatherer;
    1415import org.greenstone.gatherer.file.FileNode;
     
    221222        }
    222223        else {
    223         String title = getSelectionCount() + " files";
     224        String title = getSelectionCount() + Dictionary.newget("Tree.Files");
    224225        label = new JLabel(title, ((DefaultTreeCellRenderer)getCellRenderer()).getClosedIcon(), JLabel.CENTER);
    225226        title = null;
     
    272273    pt_last = pt;
    273274    if(!DragSource.isDragImageSupported()) {
    274                 // Erase the last ghost image and cue line
     275        // Erase the last ghost image and cue line
    275276        paintImmediately(ra_ghost.getBounds());
    276                 // Remember where you are about to draw the new ghost image
     277        // Remember where you are about to draw the new ghost image
    277278        ra_ghost.setRect(pt.x - group.mouse_offset.x, pt.y - group.mouse_offset.y, group.image_ghost.getWidth(), group.image_ghost.getHeight());
    278                 // Draw the ghost image
     279        // Draw the ghost image
    279280        g2.drawImage(group.image_ghost, AffineTransform.getTranslateInstance(ra_ghost.getX(), ra_ghost.getY()), null);
    280281    }
     
    282283    TreePath target_path = this.getPathForLocation(pt.x, pt.y);
    283284    if(previous_path == null || target_path != null && !target_path.equals(previous_path)) {
    284                 // Immediately clear the old cue lines.
     285        // Immediately clear the old cue lines.
    285286        if(upper_cue_line != null && lower_cue_line != null) {
    286287        paintImmediately(upper_cue_line.getBounds());
  • trunk/gli/src/org/greenstone/gatherer/gui/tree/DragTreeCellRenderer.java

    r5360 r5590  
    1 package org.greenstone.gatherer.gui.tree;
    21/**
    32 *#########################################################################
     
    3635 *########################################################################
    3736 */
     37package org.greenstone.gatherer.gui.tree;
     38
    3839import java.awt.*;
    3940import javax.swing.*;
     
    9798    }
    9899}
    99 
Note: See TracChangeset for help on using the changeset viewer.