Changeset 17730 in josm for trunk/src/org
- Timestamp:
- 2021-04-09T21:22:52+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainFrame.java
r17704 r17730 6 6 import java.awt.BorderLayout; 7 7 import java.awt.Component; 8 import java.awt.ComponentOrientation; 8 9 import java.awt.Image; 9 10 import java.awt.Rectangle; … … 15 16 import java.beans.PropertyChangeListener; 16 17 import java.util.List; 18 import java.util.Locale; 17 19 import java.util.Objects; 18 20 import java.util.stream.Collectors; … … 73 75 this.panel = new MainPanel(MainApplication.getLayerManager()); 74 76 setContentPane(new JPanel(new BorderLayout())); 77 setComponentOrientation(); 78 } 79 80 private void setComponentOrientation() { 81 ComponentOrientation orientation = ComponentOrientation.getOrientation(Locale.getDefault()); 82 if (orientation == ComponentOrientation.RIGHT_TO_LEFT) { 83 Logging.info(tr("Setting component orientation to right-to-left")); 84 } 85 applyComponentOrientation(orientation); 75 86 } 76 87
Note:
See TracChangeset
for help on using the changeset viewer.