I've got this FXML that is working perfectly in SceneBuilder Preview and acts completely different on NetBeans JavaFX Sample Application (so there is nothing extra that could break it's behaviour). (see sceencast)
I need that 2 TitledPanes to autoresize (half and half) according with the Window (as it works in the SceneBuilder Preview).
<AnchorPane id="AnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefWidth="798.0" xmlns:fx="http://javafx.com/fxml" fx:controller="javafxapplication2.Sample">
<children>
<VBox id="vBox1" prefWidth="770.0" spacing="25.0" AnchorPane.bottomAnchor="25.0" AnchorPane.leftAnchor="25.0" AnchorPane.rightAnchor="25.0" AnchorPane.topAnchor="25.0">
<children>
<TitledPane id="titledPane1" fx:id="test" prefWidth="748.0" text="Admin" VBox.vgrow="ALWAYS">
<content>
<AnchorPane id="Content" minHeight="0.0" minWidth="0.0">
<children>
<TableView id="tableView1" prefWidth="718.0" AnchorPane.bottomAnchor="14.0" AnchorPane.leftAnchor="14.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="14.0" />
</children>
</AnchorPane>
</content>
</TitledPane>
<TitledPane id="titledPane2" prefWidth="748.0" text="Resellers" VBox.vgrow="ALWAYS">
<content>
<AnchorPane id="Content" minWidth="0.0" prefWidth="744.0">
<children>
<TableView id="tableView2" prefWidth="200.0" AnchorPane.bottomAnchor="14.0" AnchorPane.leftAnchor="14.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="14.0" />
</children>
</AnchorPane>
</content>
</TitledPane>
</children>
</VBox>
</children>
</AnchorPane>
The SceneBuilder Preview and NetBeans JavaFX Sample Application are using different versions of JavaFX. Probably the SceneBuilder is using 2.1 and NetBeans 2.0.2. Upgrade the version of the app, either by upgrading the Java version of your machine or importing the new jfxrt.jar version to your classpath (ie. into netbeans app libraries).
Related
I am trying to hide the console when running the Haxe application.
I am using FlashDevelop to compile Haxe into hxcpp, and this is my project.xml
<?xml version="1.0" encoding="utf-8"?>
<project>
<!-- metadata, make sure 'package' is at least 3 segments (ie. com.mycompany.myproject) -->
<meta title="haxeGame" package="haxeGame" version="1.0.0" company="xiggie" />
<!-- output -->
<app main="Main" file="haxeGame" path="bin" />
<window width="800" height="480" fps="60" background="0x000000" orientation="landscape" resizable="false" borderless="true" />
<window vsync="true" antialiasing="6" />
<!-- classpath, haxe libs -->
<classpath name="src" />
<haxelib name="openfl" />
<haxelib name="actuate" />
<!-- assets -->
<icon path="assets/texture.jpg" />
<assets path="assets" rename="assets" />
<!-- optimize output
<haxeflag name="-dce full" /> -->
<!-- Windows app: hide console -->
<setenv name="no_console" value="1" />
<flag value="subsystem:windows" />
</project>
I have tried all of these:
<haxeflag name="-D no_console" />
<haxedef name="no_console" />
<setenv name="no_console" value="1" />
Is it actually possible to remove the console from the release app?
The console should be hidden by default. To make it appear one needs to add
<setenv name="SHOW_CONSOLE" />
However, when using mingw instead of msvc as compiler, the toolchain configuration that comes with hxcpp currently does not pass the flag to the linker that avoids the creation of a console window.
To work around this, search for the mingw-toolchain.xml in your haxe installation and add the -mwindows flag to the linker configuration.
I created a pull request for this https://github.com/HaxeFoundation/hxcpp/pull/286
I've got a bunch of *.uml files in one legacy project that look like this:
<?xml version="1.0" encoding="UTF-8"?>
<Diagram>
<ID>JS</ID>
<OriginalElement>...</OriginalElement>
<nodes />
<settings layout="Hierarchic Group" zoom="0.8528951486697965" x="288.0" y="309.5" />
<SelectedNodes />
<Categories>
<Category>Fields</Category>
</Categories>
<SCOPE>All</SCOPE>
<VISIBILITY>PUBLIC</VISIBILITY>
</Diagram>
Any idea which tool generated this?
These files are IntelliJ IDEA (Ultimate Edition, not Community Edition) diagram files, used store UML diagrams generated by IntelliJ.
Here is an example shown in IntelliJ:
Here what the .uml file contains:
<?xml version="1.0" encoding="UTF-8"?>
<Diagram>
<ID>JAVA</ID>
<OriginalElement />
<nodes>
<node x="-317.5" y="-101.0">com.artechra.Detail</node>
<node x="-320.5" y="-195.0">com.artechra.Master</node>
</nodes>
<notes />
<edges>
<edge source="com.artechra.Master" target="com.artechra.Detail">
<point x="0.0" y="0.0" />
<point x="0.0" y="0.0" />
</edge>
</edges>
<settings layout="Hierarchic Group" zoom="1.0" x="0.0" y="0.0" />
<SelectedNodes />
<Categories />
<SCOPE>All</SCOPE>
<VISIBILITY>private</VISIBILITY>
</Diagram>
According to the text that appears in each diagram, it's all "powered by" yFiles which may well be the generic markup format.
I am new to wix and am havaingsome issues using the copyfile component in wix. Please can you loke at the code below and advise. Many Thanks in advanced.
I have 3 features, 3 componentgroups & 3 components as described below with the respective directoryRef
<Feature Id = "F1" Title "T1" Level ="1">
<ComponetGroupRef Id="CG1" />
<Condition Level="1">
<![CDATA[ComputerName="S1"]
</Condition>
</Feature>
<Feature Id = "F1" Title "T1" Level ="1">
<ComponetGroupRef Id="CG2" />
<Condition Level="1">
<![CDATA[ComputerName="S2"]
</Condition>
</Feature>
<Feature Id = "F1" Title "T1" Level ="1">
<ComponetGroupRef Id="CG3" />
<Condition Level="1">
<![CDATA[ComputerName="S3"]
</Condition>
</Feature>
<ComponentGroup id="CG1">
<ComponentRef id="c1" />
</ComponentGroup>
<ComponentGroup id="CG2">
<ComponentRef id="c2" />
</ComponentGroup>
<ComponentGroup id="CG3">
<ComponentRef id="c1" />
<ComponentRef id="c2" />
</ComponentGroup>
<DirectoryRef Id"ApplicationDirectory">
<Component Id="C1" Guid="xyz">
<File Id="F1"KeyPath="yes" Source="Some Source Location">
<CopyFile Id="CF1" DestinationDirectory="Dest1" />
</File>
</Component>
<Component Id="C2" Guid="abc">
<File Id="F2"KeyPath="yes" Source="Some Source Location">
<CopyFile Id="CF2" DestinationDirectory="Dest2" />
</File>
</Component>
</DirectoryRef>
so basically if I am running the wix msi on server S1 only File F1 should be copied, when I am running on server S2 only File F2 should be copied and when I am running on Server S3, Files F1 & F2 both should be copied.
The issue I am having is that all the files are being copied irrespictive or server name match.
Can you please advise if I am being foolish.
Thanks,
Janak
Wix is not for copy.
I defined a different wix template project for the work I wanted to do. So instead of copy from destination to another location. I changed the project implementation so that it copies from source to a different destination.
I am having a problem with scrolledittext in DHTMl runtime I am using firefox 16.0 I have this following code when i run this and trigger the onfocus event the whole text is getting selected.Any idea why?
I am using Openlaszlo 5.0
<canvas>
<include href="incubator/scrolledittext.lzx" />
<include href="lz/vscrollbar.lzx"/>
<include href="incubator/newvscrollbar.lzx"/>
<include href="incubator/newvscrollbar_resources.lzx"/>
<button name="text">
<handler name="onclick">
canvas.sp.inp.onfocus.sendEvent();
</handler>
</button>
<scrolledittext name="sp" x="50" y="50"
height="300"
width="400"
focusable="true"
>
</scrolledittext>
</canvas>
I have installed uppercut integrated cc.net such a way that i didnt make any change in webdashboard,
This is my cc.net config code,
-->
-->
<!-- PROJECT STRUCTURE -->
<cb:define name="WindowsFormsApplication1">
<project name="$(projectName)">
<workingDirectory>$(working_directory)\$(projectName)</workingDirectory>
<artifactDirectory>$(drop_directory)\$(projectName)</artifactDirectory>
<category>$(projectName)</category>
<queuePriority>$(queuePriority)</queuePriority>
<triggers>
<intervalTrigger name="continuous" seconds="60" buildCondition="IfModificationExists" />
</triggers>
<sourcecontrol type="svn">
<executable>c:\program files\subversion\bin\svn.exe</executable>
<!--<trunkUrl>http://192.168.1.8/trainingrepos/deepasundari/WindowsFormsApplication1</trunkUrl>-->
<trunkUrl>$(svnPath)</trunkUrl>
<workingDirectory>$(working_directory)\$(projectName)</workingDirectory>
</sourcecontrol>
<tasks>
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>
<workingDirectory>$(working_directory)\$(projectName)</workingDirectory>
<projectFile>WindowsFormsApplication1.sln</projectFile>
<timeout>600</timeout>
<buildArgs> /noconsolelogger /p:configuration=Debug </buildArgs>
<!--<buildArgs>/noconsolelogger /p:OutputPath=$(drop_directory)\$(projectName)\sample </buildArgs>-->
<logger>ThoughtWorks.CruiseControl.MsBuild.XmlLogger,C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
</msbuild>
<!--<labeller type="svnRevisionLabeller">
<prefix>Test-</prefix>
<major>7</major>
<minor>11</minor>
<url>$svnpath</url>
<username>deepasundari</username>
<password>deepasundari</password>
</labeller>-->
<exec>
<executable>$(working_directory)\$(projectName)\build.bat</executable>
</exec>
</tasks>
<publishers>
<!--<buildpublisher>
--><!--<sourceDir>C:\myprojects\project1</sourceDir>--><!--
<publishDir>$(working_directory)\$(projectName)</publishDir>
</buildpublisher>-->
<merge>
<files>
<file>$(working_directory)\$(projectName)\build_output\build_artifacts\*.xml</file>
<file>$(working_directory)\$(projectName)\build_output\build_artifacts\mbunit\*-results.xml</file>
<file>$(working_directory)\$(projectName)\build_output\build_artifacts\nunit\*-results.xml</file>
<file>$(working_directory)\$(projectName)\build_output\build_artifacts\ncover\*-results.xml</file>
<file>$(working_directory)\$(projectName)\build_output\build_artifacts\ndepend\*.xml</file>
</files>
</merge>
<!--<email from="buildserver#somewhere.com" mailhost="smtp.somewhere.com" includeDetails="TRUE">
<users>
<user name="YOUR NAME" group="BuildNotice" address="yourEmail#somewhere.com" />
</users>
<groups>
<group name="BuildNotice" notification="change" />
</groups>
</email>-->
<xmllogger/>
<statistics>
<statisticList>
<firstMatch name="Svn Revision" xpath="//modifications/modification/changeNumber" />
<firstMatch name="ILInstructions" xpath="//ApplicationMetrics/#NILInstruction" />
<firstMatch name="LinesOfCode" xpath="//ApplicationMetrics/#NbLinesOfCode" />
<firstMatch name="LinesOfComment" xpath="//ApplicationMetrics/#NbLinesOfComment" />
</statisticList>
</statistics>
<modificationHistory onlyLogWhenChangesFound="true" />
<rss/>
</publishers>
</project>
</cb:define>
<cb:WindowsFormsApplication1 projectname="WindowsFormsApplication1" queuepriority="1" svnpath="http://192.168.1.8/trainingrepos/deepasundari/WindowsFormsApplication1" />
this code is updating rss and report xml files, but i could not get the build folder in the code_drop..
could anyone help me with this problem??
It looks like you have followed the sample almost perfectly. http://uppercut.googlecode.com/svn/trunk/docs/Samples/CC.NET/server/ccnet.config
What you should see in the code_drop folder on the build server is a folder b##-r## for build and revision per each build.
Most of this is talked about in here: http://uppercut.googlecode.com/svn/trunk/docs/IntegrateUppercuTWithCruiseControl.NET.doc