forked from External/mage
New stack dialog (experimental)
This commit is contained in:
parent
397c393f1d
commit
48f2018af6
24 changed files with 1095 additions and 21 deletions
|
|
@ -0,0 +1,31 @@
|
|||
package mage.client.components.ext;
|
||||
|
||||
import org.mage.card.arcane.UI;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
/**
|
||||
* @author noxx
|
||||
*/
|
||||
public class MageFloatPane extends JEditorPane {
|
||||
|
||||
public MageFloatPane() {
|
||||
UI.setHTMLEditorKit(this);
|
||||
setEditable(false);
|
||||
setBackground(Color.white);
|
||||
JButton jb = new JButton("Done");
|
||||
jb.setLocation(50, 50);
|
||||
jb.setSize(100, 50);
|
||||
add(jb);
|
||||
}
|
||||
|
||||
public void setCard(final String text) {
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
setText(text);
|
||||
setCaretPosition(0);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue