forum  

[Forum] problem with MatteBorder.

List for Users of Carlsbad Cubes' Technologies and Products
Sun, 26 Feb 2006 08:46:31 -0800

If I run the gridbag example that is on the website (xml see below), I dont
get the red MatteBorder (in JDK 1.4 and JDK 1.5).
I compiled SwiXML in debug mode and even added a print statement in the
BorderConverter class, just before the border is actually created.

      System.out.println("Invoking createxxxxBorder method");
      border = (Border) method.invoke( null, args );
(on line 149 of the BorderConverter class (swixml #144) ).

The print line shows up, no exceptions show up, but I still dont see any
border. My OS is windows XP.


<?xml version="1.0" encoding="UTF-8"?>
<frame name="frame" size="500,300" title="Simple Complaint Dialog"
background="FFCCEE" layout="BorderLayout">
        <panel name="pnl" background="3399CC" border="MatteBorder(4,4,4,4,red)"
constraints="BorderLayout.CENTER" layout="GridBagLayout">
                <button name="btn1" text="Wonderful">
                        <gridbagconstraints id="gbc_1" insets="2,2,2,2" 
gridx="0" gridy="0"
ipadx="15" ipady="15" weightx="1" weighty="1"/>
                </button>
                <button name="btn2" text="World">
                        <gridbagconstraints use="gbc_1" gridx="1"/>
                </button>
                <button name="btn3" text="of">

                        <gridbagconstraints insets="2,2,2,2" gridx="0" 
gridy="1" ipadx="0"
ipady="0" weightx="1.0" weighty="1.0"/>
                </button>
                <button name="btn4" text="Swing">
                        <gridbagconstraints insets="2,2,2,2" gridx="1" 
gridy="1" ipadx="0"
ipady="0" weightx="1.0" weighty="1.0"/>
                </button>
        </panel>
</frame>


_______________________________________________
Forum mailing list
Forum@carlsbadcubes.com
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com