tag:blogger.com,1999:blog-7706192646925495484.post8691876028467645232..comments2013-02-05T09:15:58.911-08:00Comments on Pleasing Software: MigLayout for JavaFX ReloadedAnonymoushttp://www.blogger.com/profile/10775967623378633903noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-7706192646925495484.post-23542612962640933712010-04-20T06:25:36.693-07:002010-04-20T06:25:36.693-07:00rk,
In v0.6, JFXtras adapted a new naming convent...rk,<br /><br />In v0.6, JFXtras adapted a new naming convention for it's classes in order to distinguish them from current and future core JavaFX classes. So MigLayout became XMigLayout and ResizableScene is now XScene.<br /><br />DeanAnonymoushttps://www.blogger.com/profile/10775967623378633903noreply@blogger.comtag:blogger.com,1999:blog-7706192646925495484.post-52113031000032699902010-04-20T00:37:04.943-07:002010-04-20T00:37:04.943-07:00Dean,
Are these samples tested with JFXtras 0.6 ...Dean,<br /><br /> Are these samples tested with JFXtras 0.6 ?. They are failing for me. <br /><br /> Has org.jfxtras.scene.ResizableScene been deleted and/or moved in ver 0.6 ?.<br /><br />/rkUnknownhttps://www.blogger.com/profile/04985700472166926172noreply@blogger.comtag:blogger.com,1999:blog-7706192646925495484.post-83978539167075936752009-10-02T11:58:26.253-07:002009-10-02T11:58:26.253-07:00Chris,
Thanks for pointing out the "centered...Chris,<br /><br />Thanks for pointing out the "centered" typo. It's fixed now.<br /><br />I'm not sure I completely understand what you're trying to accomplish, but if you want the rectangle to be centered, then you need to move the nodeConstraints to the Rectangle. Right now you're setting them on the MigLayout itself, which I don't think is what you want.<br /><br />Also, you will need to set the width and height of the MigLayout container to match the Panel's in order for the Rectangle to be centered within the Panel.Anonymoushttps://www.blogger.com/profile/10775967623378633903noreply@blogger.comtag:blogger.com,1999:blog-7706192646925495484.post-13370793690278414002009-09-28T19:07:48.631-07:002009-09-28T19:07:48.631-07:00I have found that using the word "center"...I have found that using the word "center" will stop the above stack trace. However it has no effect, or I am doing something wrong. In the below I would expect to see a black rectangle in the middle of rect. I do see the rectangle, but it positions in the top left hand corner of rect.<br /><br />public class PropertiesPanelExample extends CustomNode<br />{<br /> public var rect: Rect;<br /><br /> protected override function create(): Node<br /> {<br /> var container = Panel<br /> {<br /> translateX: bind rect.x;<br /> translateY: bind rect.y;<br /> width: bind rect.width;<br /> height: bind rect.height;<br /> content: MigLayout<br /> {<br /> constraints: "fill"<br /> content: Rectangle {<br /> width: 100<br /> height: 100<br /> }<br /> layoutInfo: nodeConstraints( "center")<br /> }<br /> };<br /> return container;<br /> }<br />}<br /><br />(By the way substituting the word "centered" into the below does not crash as with the above).Unknownhttps://www.blogger.com/profile/17867203639082938494noreply@blogger.comtag:blogger.com,1999:blog-7706192646925495484.post-60391052899883283542009-09-27T23:48:32.272-07:002009-09-27T23:48:32.272-07:00I hope that MigLayout proves to be as easy to use ...I hope that MigLayout proves to be as easy to use and elegant as TableLayout was for Swing.<br /><br />For your example I got the jars out as specified, but got a failure on the call to the migNode() function: <br /><br />java.lang.IllegalArgumentException: Illegal Constraint: 'centered'<br />Unknown keyword.<br /> at net.miginfocom.layout.ConstraintParser.parseComponentConstraint(Unknown Source)<br /> at org.jfxtras.scene.layout.MigNodeLayoutInfo$_SBECL.onChange(MigNodeLayoutInfo.fx:50)<br /> at com.sun.javafx.runtime.location.ObjectVariable.notifyListeners(ObjectVariable.java:142)<br /> at com.sun.javafx.runtime.location.ObjectVariable.replaceValue(ObjectVariable.java:104)<br /> at com.sun.javafx.runtime.location.ObjectVariable.set(ObjectVariable.java:115)<br /> at org.jfxtras.scene.layout.MigNodeLayoutInfo.set$constraints(MigNodeLayoutInfo.fx:48)<br /> at org.jfxtras.scene.layout.MigLayout.nodeConstraints(MigLayout.fx:254)<br /> at org.jfxtras.scene.layout.MigLayout.migNode(MigLayout.fx:264)<br /> at com.seasoft.utils.MigLayoutTest.javafx$run$(MigLayoutTest.fx:32)<br />...Unknownhttps://www.blogger.com/profile/17867203639082938494noreply@blogger.comtag:blogger.com,1999:blog-7706192646925495484.post-30783275007149892102009-07-22T12:31:14.871-07:002009-07-22T12:31:14.871-07:00Thanks, Mikael!
(for an awesome layout manager to...Thanks, Mikael!<br /><br />(for an awesome layout manager to port and for the nice comments about the book)Anonymoushttps://www.blogger.com/profile/10775967623378633903noreply@blogger.comtag:blogger.com,1999:blog-7706192646925495484.post-13569416213149116122009-07-22T09:37:47.927-07:002009-07-22T09:37:47.927-07:00Thanks for your port Dean.
Btw, I have now read y...Thanks for your port Dean.<br /><br />Btw, I have now read your book. Really Good Stuff!<br /><br />Cheers,<br />Mikael GrevAnonymousnoreply@blogger.com