File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JavaFX and the fly likes starting a small development, scene builder and netbeans(mysql) horrible screen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "starting a small development, scene builder and netbeans(mysql) horrible screen" Watch "starting a small development, scene builder and netbeans(mysql) horrible screen" New topic
Author

starting a small development, scene builder and netbeans(mysql) horrible screen

Miguel Enriquez
Ranch Hand

Joined: Mar 13, 2004
Posts: 94
hi all.

i am development a small app, following this tutorial:

http://soft-mas.com/crear-aplicacion-usando-scene-builder-mysql-y-netbeans-parte-1/

http://soft-mas.com/crear-aplicacion-usando-scene-builder-mysql-y-netbeans-parte-2/

http://soft-mas.com/crear-aplicacion-usando-scene-builder-mysql-y-netbeans-parte-3/

my laptop on work have the 1366x768

work fine, and see the screen good, its OK

http://postimg.org/image/52y2cpvq9/

but i translate(transport) the app to my laptop at home (with different resolution) and the screen see horrible

http://postimg.org/image/8a4d9tfrb/

How to fix?

here my fxml file:

<?xml version="1.0" encoding="UTF-8"?>

<?import java.lang.*?>

<?import java.util.*?>

<?import javafx.scene.control.*?>

<?import javafx.scene.layout.*?>

<?import javafx.scene.paint.*?>

<?import javafx.scene.text.*?>

<?scenebuilder-background-color 0xffb800ff?>

<AnchorPane id="AnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="353.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/2.2">

<children>

<SplitPane dividerPositions="0.7073578595317725" focusTraversable="true" prefHeight="305.0" prefWidth="600.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="48.0">

<items>

<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0">

<children>

<Label layoutX="14.0" layoutY="14.0" text="Nombre:" />

<TextField layoutX="14.0" layoutY="30.0" prefWidth="399.0" />

<Label layoutX="14.0" layoutY="52.0" text="Identificacion:" />

<TextField layoutX="14.0" layoutY="68.0" prefWidth="399.0" />

<Label layoutX="14.0" layoutY="90.0" text="Correo Electronico:" />

<TextField layoutX="14.0" layoutY="106.0" prefWidth="399.0" />

<Label layoutX="14.0" layoutY="127.0" text="Telefono:" />

<TextField layoutX="14.0" layoutY="143.0" prefWidth="399.0" />

<Label layoutX="14.0" layoutY="164.0" text="Direccion:" />

<TextField layoutX="14.0" layoutY="180.0" prefWidth="399.0" />

</children>

</AnchorPane>

<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0">

<children>

<SplitPane dividerPositions="0.3554817275747508" focusTraversable="true" orientation="VERTICAL" prefHeight="398.0" prefWidth="172.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">

<items>

<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="105.0" prefWidth="170.0">

<children>

<Label layoutX="42.0" layoutY="6.0" text="BASE DE DATOS" />

<Button layoutX="39.0" layoutY="32.0" mnemonicParsing="false" prefWidth="86.0" text="Conectar" />

<Button layoutX="39.0" layoutY="74.0" mnemonicParsing="false" text="Desconectar" />

</children>

</AnchorPane>

<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="100.0" prefWidth="160.0">

<children>

<Label layoutX="14.0" layoutY="14.0" text="CRUD (Botones de Control)" />

<Button layoutX="45.0" layoutY="40.0" mnemonicParsing="false" prefWidth="74.0" text="Crear" />

<Button layoutX="45.0" layoutY="69.0" mnemonicParsing="false" prefWidth="74.0" text="Editar" />

<Button layoutX="44.0" layoutY="95.0" mnemonicParsing="false" prefWidth="74.0" text="Borrar" />

<Button layoutX="45.0" layoutY="127.0" mnemonicParsing="false" prefWidth="74.0" text="Buscar" />

</children>

</AnchorPane>

</items>

</SplitPane>

</children>

</AnchorPane>

</items>

</SplitPane>

<Label alignment="CENTER" layoutX="1.0" layoutY="0.0" prefHeight="48.0" prefWidth="600.0" text="AGENDA EN JAVA" textAlignment="CENTER" textFill="#330c00" textOverrun="ELLIPSIS">







</Label>

</children>

</AnchorPane>

John Damien Smith
Ranch Hand

Joined: Jan 26, 2012
Posts: 142
    
    9
Also posted to the Oracle JavaFX forums:

https://community.oracle.com/thread/3560504
 
 
subject: starting a small development, scene builder and netbeans(mysql) horrible screen