Changeset 7376 in josm for trunk/src/org


Ignore:
Timestamp:
2014-08-10T14:59:31+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10198 - wrong layout of bug report dialog with Gnome 3 (at least it should fix t, cannot reproduce)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java

    r7082 r7376  
    55
    66import java.awt.Component;
     7import java.awt.GridBagConstraints;
    78import java.awt.GridBagLayout;
    89import java.io.ByteArrayOutputStream;
     
    162163            p.add(new JMultilineLabel(
    163164                    tr("You have encountered an error in JOSM. Before you file a bug report " +
    164                             "make sure you have updated to the latest version of JOSM here:")), GBC.eol());
     165                            "make sure you have updated to the latest version of JOSM here:")),
     166                            GBC.eol().fill(GridBagConstraints.HORIZONTAL));
    165167            p.add(new UrlLabel(Main.getJOSMWebsite(),2), GBC.eop().insets(8,0,0,0));
    166168            p.add(new JMultilineLabel(
    167169                    tr("You should also update your plugins. If neither of those help please " +
    168                             "file a bug report in our bugtracker using this link:")), GBC.eol());
     170                            "file a bug report in our bugtracker using this link:")),
     171                            GBC.eol().fill(GridBagConstraints.HORIZONTAL));
    169172            p.add(getBugReportUrlLabel(urltext), GBC.eop().insets(8,0,0,0));
    170173            p.add(new JMultilineLabel(
    171174                    tr("There the error information provided below should already be " +
    172175                            "filled in for you. Please include information on how to reproduce " +
    173                             "the error and try to supply as much detail as possible.")), GBC.eop());
     176                            "the error and try to supply as much detail as possible.")),
     177                            GBC.eop().fill(GridBagConstraints.HORIZONTAL));
    174178            p.add(new JMultilineLabel(
    175179                    tr("Alternatively, if that does not work you can manually fill in the information " +
    176                             "below at this URL:")), GBC.eol());
     180                            "below at this URL:")), GBC.eol().fill(GridBagConstraints.HORIZONTAL));
    177181            p.add(new UrlLabel(Main.getJOSMWebsite()+"/newticket",2), GBC.eop().insets(8,0,0,0));
    178182            if (Utils.copyToClipboard(text)) {
    179                 p.add(new JLabel(tr("(The text has already been copied to your clipboard.)")), GBC.eop());
     183                p.add(new JLabel(tr("(The text has already been copied to your clipboard.)")),
     184                        GBC.eop().fill(GridBagConstraints.HORIZONTAL));
    180185            }
    181186
Note: See TracChangeset for help on using the changeset viewer.