Changeset 30614 in osm for applications/editors/josm


Ignore:
Timestamp:
2014-08-31T02:57:28+02:00 (10 years ago)
Author:
donvip
Message:

[josm_terracer] likely fix #josm10293 - focus potential issue

Location:
applications/editors/josm/plugins/terracer/src/terracer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/terracer/src/terracer/HouseNumberInputDialog.java

    r30613 r30614  
    117117        setupDialog();
    118118        getRootPane().setDefaultButton(defaultButton);
    119         setVisible(true);
    120         lo.requestFocus();
     119        pack();
     120        lo.requestFocusInWindow();
    121121    }
    122122
  • applications/editors/josm/plugins/terracer/src/terracer/HouseNumberInputHandler.java

    r30613 r30614  
    4848    private final Way outline, street;
    4949    private final String streetName;
    50     private final String buildingType;
    5150    private final Node init;
    5251    private final Relation associatedStreet;
     
    7877        this.street = street;
    7978        this.streetName = streetName;
    80         this.buildingType = buildingType;
    8179        this.associatedStreet = associatedStreet;
    8280        this.housenumbers = housenumbers;
    8381
    84         // This dialog is started modal
    8582        this.dialog = new HouseNumberInputDialog(this, street, streetName, buildingType,
    8683                associatedStreet != null, housenumbers);
    87 
    88         // We're done
    8984    }
    9085
  • applications/editors/josm/plugins/terracer/src/terracer/TerracerAction.java

    r30613 r30614  
    232232            // show input dialog.
    233233            new HouseNumberInputHandler(this, outline, init, street, streetname, outline.get("building"),
    234                     associatedStreet, housenumbers, title);
     234                    associatedStreet, housenumbers, title).dialog.showDialog();
    235235        }
    236236    }
Note: See TracChangeset for help on using the changeset viewer.