1. /*
  2. * @(#)WindowsUtils.java 1.7 03/01/23
  3. *
  4. * Copyright 2003 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.7 01/23/03
  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. return c.getComponentOrientation().isLeftToRight();
  24. }
  25. }