1. /*
  2. * @(#)WindowsUtils.java 1.6 01/02/09
  3. *
  4. * Copyright 1999-2001 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package com.sun.java.swing.plaf.windows;
  11. import javax.swing.plaf.*;
  12. import javax.swing.*;
  13. import java.awt.*;
  14. /**
  15. * This is a collection of utility methods needed by the Windows L&F
  16. *
  17. * @version 1.6 02/09/01
  18. * @author Brian Beck
  19. */
  20. class WindowsUtils {
  21. /*
  22. * Convenience function for determining ComponentOrientation. Helps us
  23. * avoid having Munge directives throughout the code.
  24. */
  25. static boolean isLeftToRight( Component c ) {
  26. return c.getComponentOrientation().isLeftToRight();
  27. }
  28. }