Java JTextComponent setTextComponentTransparent( JTextComponent textComponent)

Here you can find the source of setTextComponentTransparent( JTextComponent textComponent)

Description

set Text Component Transparent

License

Open Source License

Declaration

public static void setTextComponentTransparent(
                JTextComponent textComponent)
        

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.UIDefaults;

import javax.swing.text.JTextComponent;

public class Main {
    public static void setTextComponentTransparent(
            JTextComponent textComponent)
    /*      */{//from   w w w . jav  a  2  s  .c  o  m
        /* 3650 */textComponent.setOpaque(false);
        /*      */
        /* 3653 */textComponent.putClientProperty("Synthetica.opaque",
                Boolean.valueOf(false));
        /*      */
        /* 3655 */textComponent.putClientProperty(
                "Nimbus.Overrides.InheritDefaults", Boolean.valueOf(false));
        /* 3656 */textComponent.putClientProperty("Nimbus.Overrides",
                new UIDefaults());
        /*      */}
}

Related

  1. setMandatoryBorder(JTextComponent comp)
  2. setMandatoryBorder(JTextComponent comp)
  3. setText(JTextComponent textComp, String text)
  4. setTextComponentMargins(JTextComponent component)
  5. setTextComponentTransparent( JTextComponent paramJTextComponent)
  6. setTextComponentTransparent( JTextComponent textComponent)
  7. setTextComponetIntegerValid(final JTextComponent c)
  8. setTextStyle(JTextComponent txt)
  9. setWarningBackground(JTextComponent comp)