forked from External/mage
Displaying text in helper component. Removed feedback component
This commit is contained in:
parent
f44ceee263
commit
75e641580c
5 changed files with 88 additions and 49 deletions
|
|
@ -1,6 +1,5 @@
|
|||
package mage.client.components;
|
||||
|
||||
import mage.view.CardView;
|
||||
import org.mage.card.arcane.ManaSymbols;
|
||||
import org.mage.card.arcane.UI;
|
||||
|
||||
|
|
@ -20,19 +19,17 @@ public class MageTextArea extends JEditorPane {
|
|||
setEditable(false);
|
||||
setBackground(new Color(0, 0, 0, 0)); // transparent background
|
||||
setFocusable(false);
|
||||
setBorder(BorderFactory.createLineBorder(Color.red));
|
||||
//setBorder(BorderFactory.createLineBorder(Color.red));
|
||||
//setSelectionColor(new Color(0, 0, 0, 0));
|
||||
}
|
||||
|
||||
public void setText(String text) {
|
||||
setText(text, null);
|
||||
setText(text, 16);
|
||||
}
|
||||
|
||||
public void setText(String text, CardView source) {
|
||||
public void setText(String text, int fontSize) {
|
||||
if (text == null) return;
|
||||
|
||||
int fontSize = 16;
|
||||
|
||||
String fontFamily = "arial";
|
||||
|
||||
final StringBuffer buffer = new StringBuffer(512);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue