×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Massimo Zappino
Added: Apr 14, 2017 6:50 AM
Modified: Aug 27, 2017 3:32 PM
Views: 12
  1.  
  2. public static void makeTransparentJTextComponent(JTextComponent jTextComponent) {
  3.    jTextComponent.setBorder(BorderFactory.createEmptyBorder());
  4.    jTextComponent.setEditable(false);
  5.    jTextComponent.setOpaque(false);
  6. }