< prev index next >

src/java.desktop/share/classes/sun/print/ServiceDialog.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 1393,1403 **** setBorder(BorderFactory.createTitledBorder(strTitle)); String unitsKey = "label.millimetres"; String defaultCountry = Locale.getDefault().getCountry(); if (defaultCountry != null && ! (defaultCountry.equals("") || defaultCountry.equals(Locale.US.getCountry()) || defaultCountry.equals(Locale.CANADA.getCountry()))) { unitsKey = "label.inches"; units = MediaPrintableArea.INCH; } --- 1393,1403 ---- setBorder(BorderFactory.createTitledBorder(strTitle)); String unitsKey = "label.millimetres"; String defaultCountry = Locale.getDefault().getCountry(); if (defaultCountry != null && ! (defaultCountry.isEmpty() || defaultCountry.equals(Locale.US.getCountry()) || defaultCountry.equals(Locale.CANADA.getCountry()))) { unitsKey = "label.inches"; units = MediaPrintableArea.INCH; }
< prev index next >