1. /*
  2. * @(#)WindowsUtils.java 1.3 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.java.swing.plaf.windows;
  8. import javax.swing.plaf.*;
  9. import javax.swing.*;
  10. import java.awt.*;
  11. /**
  12. * This is a collection of utility methods needed by the Windows L&F
  13. *
  14. * @version 1.3 11/29/01
  15. * @author Brian Beck
  16. */
  17. class WindowsUtils {
  18. /*
  19. * Convenience function for determining ComponentOrientation. Helps us
  20. * avoid having Munge directives throughout the code.
  21. */
  22. static boolean isLeftToRight( Component c ) {
  23. /*if[JDK1.2]
  24. return c.getComponentOrientation().isLeftToRight();
  25. else[JDK1.2]*/
  26. return true;
  27. /*end[JDK1.2]*/
  28. }
  29. }