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,36 @@
|
|||
package mage.client.components.ext;
|
||||
|
||||
import mage.client.components.MageRoundPane;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* @author ayratn
|
||||
*/
|
||||
public class TestMageFloatPane {
|
||||
|
||||
public static void main(String... args) {
|
||||
JFrame f = new JFrame();
|
||||
|
||||
f.setSize(600, 400);
|
||||
f.setVisible(true);
|
||||
|
||||
MageFloatPane fp = new MageFloatPane();
|
||||
fp.setCard("Card");
|
||||
|
||||
MageRoundPane popupContainer = new MageRoundPane();
|
||||
popupContainer.setLayout(null);
|
||||
|
||||
popupContainer.add(fp);
|
||||
//popupContainer.setVisible(false);
|
||||
popupContainer.setBounds(0, 0, 320 + 80, 201 + 80);
|
||||
|
||||
|
||||
JDialog floatOnParent = new JDialog(f, false);
|
||||
floatOnParent.setUndecorated(true);
|
||||
floatOnParent.getContentPane().add(popupContainer);
|
||||
|
||||
floatOnParent.setBounds(300, 100, 300, 200);
|
||||
floatOnParent.setVisible(true);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue