/** Check the bounds of given line with the bounds of this pane. Optionally * calculate the new bounds in current pane's boundary. * @param comp * @return */ synchronized static public DropGlassPane getDefault (JComponent comp) { Integer id = new Integer (System.identityHashCode (comp)); if ((map.get (id))==null) { DropGlassPane dgp = new DropGlassPane (); dgp.setOpaque (false); map.put (id, dgp); } return (DropGlassPane)map.get (id); }
/** Check the bounds of given line with the bounds of this pane. Optionally * calculate the new bounds in current pane's boundary. * @param comp * @return */ synchronized static public DropGlassPane getDefault (JComponent comp) { Integer id = new Integer (System.identityHashCode (comp)); if ((map.get (id))==null) { DropGlassPane dgp = new DropGlassPane (); dgp.setOpaque (false); map.put (id, dgp); } return (DropGlassPane)map.get (id); }
/** Check the bounds of given line with the bounds of this pane. Optionally * calculate the new bounds in current pane's boundary. * @param comp * @return */ synchronized static public DropGlassPane getDefault(JComponent comp) { Integer id = new Integer(System.identityHashCode(comp)); if ((map.get(id)) == null) { DropGlassPane dgp = new DropGlassPane(); dgp.setOpaque(false); map.put(id, dgp); } return map.get(id); }