transparent text pane with line wrap added

cusax-fix
Yana Stamcheva 20 years ago
parent 3b0241f5b4
commit 60d416cf01

@ -24,6 +24,7 @@ public SIPCommMsgTextArea(String text){
this.setEditable(false);
this.setLineWrap(true);
this.setWrapStyleWord(true);
this.setOpaque(false);
int col = 40;
this.setColumns(col);

@ -0,0 +1,29 @@
/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.gui.main.customcontrols;
import java.awt.Dimension;
import javax.swing.JTextArea;
/**
* The SIPCommMsgTextArea is a text area defined specially for warning
* messages.
*
* @author Yana Stamcheva
*/
public class SIPCommTranspTextPane extends JTextArea {
public SIPCommTranspTextPane(String text){
super(text);
this.setEditable(false);
this.setLineWrap(true);
this.setWrapStyleWord(true);
this.setOpaque(false);
}
}
Loading…
Cancel
Save