New stack dialog (experimental)

This commit is contained in:
magenoxx 2012-06-16 19:33:03 +04:00
parent 397c393f1d
commit 48f2018af6
24 changed files with 1095 additions and 21 deletions

View file

@ -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);
}
});
}
}