A new JavaFX 2.0 beta build has been made available. The main feature of this release is that it includes support for working against a 64-bit JVM (although we’re still Windows-only at this stage). Of course, knowing what I know, build 30 is a considerable improvement over build 28, as it has roughly four weeks worth of bug fixes, tweaks, and performance improvements over build 28.
I recommend that everyone that is playing with JavaFX 2.0 beta builds (and from my understanding there has been a huge amount of downloading going on) to update to the latest build as soon as possible, as that helps to uncover new issues and also reflects the very latest features and functionality.
it is a bug ? I use Intel x64 , win7 , netbeans 7,jdk7 x64 and I get this error when I excute the javafx x64 porjects :
*** Fallback to Prism SW pipeline
java.lang.UnsatisfiedLinkError: C:\Users\Paulo alessandre\.netbeans\7.0\lib\javafx2-win\bin\mat.dll: Can’t load IA 32-bit .dll on a AMD 64-bit platform
How to handle this ?
can you help me ?
Paulo,
I have forwarded this on to the people responsible for deployment. They’re working through the 32-bit vs 64-bit issues now. They say “Depending on which JDK and which version of JavaFX is installed this will happen if there is a mismatch.”
In the meantime, I imagine you should be able to continue to use the 32-bit version, assuming you also have a 32-bit JVM installed.
I’m sorry for the inconvenience!
Thanks for your attention.
I solved this compying the content of the javaFX JDK x64 Bin and Lib folders to the correspondents folders in
“C:\Users\Paulo alessandre\.netbeans\7.0\lib\javafx2-win”
Now it´s running like a charm !
See ya.
Am I missing something or the 32 bit zip archive is corrupted?
Vladi,
You don’t say which archive you were trying to download (SDK, runtime, or NetBeans plugin), so I just downloaded all three and tried to open them. I had no problem here so it must be a problem on your end. Let me know if you continue to have troubles.
It’s the 32 bit SDK. I don’t have any problems with the other 32 bit archives or the 64 bit SDK. I tried with Chrome and IE, same behaviour, I get a corrupted 2.112.914 bytes file. Strange.
Me too, it’s corrupted.
Same in FireFox 4. File too small and not able to open.
Thanks all for your comments. At first I thought it was just a localised problem (for Vladi), but now I see that there are multiple people here, and in other forums, having trouble downloading the file. I have notified people in Oracle and hopefully they can resolve it for you soon.
If I hear anything, I’ll let you know.
Thanks, and sorry!
All: I’ve informed the people responsible for deploying new builds and they have identified the problem. This will be fixed for subsequent releases – so thanks for your feedback.
Would it be possible to have a nice tutorial on the use of TableView?
Also, an ETA for the charts as well please.
Thx v much
Cool Steph,
There is the start of a decent TableView tutorial in the TableView JavaDocs. However, I do intend to write a better tutorial on this site when time permits.
Perhaps you could help me out and give suggestions on what you really want to know more about?
Regarding charts – they’re there now – check out the javafx.scene.chart package.
Well… How about a CRUD using a data source like JPA and and a tableview.
I tried but I cant set the table view editable , I dont know how to do.
Here is my code :
package main;
import java.util.Date;
import java.util.List;
import javafx.scene.control.TableColumn;
import javafx.scene.paint.Color;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.scene.Group;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.TableColumn.CellDataFeatures;
import javafx.stage.Stage;
import javafx.scene.control.TableView;
import javafx.util.Callback;
import javax.persistence.Query;
import teste.Pacientes;
/**
*
* @author Paulo alessandre
*/
public class Main extends Application {
/**
* @param args the command line arguments
*/
// Not used yet
EntityManagerFactory emf = Persistence.createEntityManagerFactory(“TestePU”);
EntityManager em = emf.createEntityManager();
Pacientes p = null;
public static void main(String[] args) {
Application.launch(Main.class, args);
}
@Override
public void start(Stage primaryStage) {
primaryStage.setTitle(“Hello World Table”);
Group root = new Group();
Scene scene = new Scene(root, 800, 600, Color.LIGHTGREEN);
root.getChildren().add(this.getTableView());
primaryStage.setScene(scene);
primaryStage.setVisible(true);
}
public Node getTableView() {
TableView table = new TableView();
table.setPrefSize(500, 500);
Query q = em.createNamedQuery(“Pacientes.findAll”);
List pacientes = q.getResultList();
table.setItems(FXCollections.observableArrayList((pacientes)));
TableColumn firstNameCol = new TableColumn(“Nome do paciente”);
firstNameCol.setDataRetriever(new Callback<CellDataFeatures, String>() {
public String call(CellDataFeatures p) {
return ((Pacientes) p.getValue()).getNomePaciente();
}
});
TableColumn NascimentoCol = new TableColumn(“Data de nascimento”);
NascimentoCol.setDataRetriever(new Callback<CellDataFeatures, Date>() {
public Date call(CellDataFeatures p) {
return ((Pacientes) p.getValue()).getDtNascimentoPaciente();
}
});
table.getColumns().setAll(firstNameCol, NascimentoCol);
return table;
}
// Not used yet !
public void persist(Object object) {
em.getTransaction().begin();
try {
em.persist(object);
em.getTransaction().commit();
} catch (Exception e) {
em.getTransaction().rollback();
} finally {
em.close();
}
}
}
The zip file for JavaFX 2.0 Beta SDK (build 30) (32 bit) appears to be corrupted.
Thanks for the report, I’ll look into it. Does it happen consistently for you or only intermittently?