
xml.cards.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <frame name="mainframe" layout="BorderLayout" size="640,480" title="S W I X M L" plaf="com.sun.java.swing.plaf.windows.WindowsLookAndFeel" defaultCloseOperation="JFrame.HIDE_ON_CLOSE"> <panel id="pnl" Layout="CardLayout(10,10)" Border="EtchedBorder"> <panel id="c1" Name="c1" abc="c1" Border="TitledBorder(Card 1)" constraints="c1" Background="red"> <label text="Card 1" Font="Comic Sans MS-BOLD-16" Foreground="white"/> </panel> <panel Border="TitledBorder(Card 2)" constraints="c2" Background="blue"> <label text="Card 2" Font="Comic Sans MS-BOLD-20" Foreground="white"/> </panel> <panel Border="TitledBorder(Card 3)" constraints="c3" Background="green"> <label text="Card 3" Font="Comic Sans MS-BOLD-24" Foreground="white"/> </panel> <panel Border="TitledBorder(Card 4)" constraints="c4" Background="gray"> <label text="Card 4" Font="Comic Sans MS-BOLD-32" Foreground="white"/> </panel> </panel> <panel constraints="BorderLayout.SOUTH"> <button Text="Card 1" Action="showAction" ActionCommand="c1"/> <button Text="Card 2" Action="showAction" ActionCommand="c2"/> <button Text="Card 3" Action="showAction" ActionCommand="c3"/> <button Text="Card 4" Action="showAction" ActionCommand="c4"/> <separator/> <button Text="Next" Action="nextAction"/> </panel> </frame>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy