JavaFX and Facebook, the solution

When I started this blog, I was rambling with Facebook, JavaFX and alternative technologies.
It turned out that JavaFX is not ideal for social application development, because of various reasons.
Let alone JavaFX, applets are also not very ideal for social application development, if a RIA is necessary Flash is the solution, not even Flex.
Anyway Turning a [...]

Netbeans ruins up the day, Windows 7 saves it

I have been using Netbeans PHP because it has auto-completion and it really speeds you up when you write PHP code,
Other than that you can’t believe how awful Netbeans PHP is, it sucks so hard because the FTP support is highly flawed
Suppose you work on a Project with another developer, he made a change, you [...]

How to put flash behind HTML

This was a big issue for me because on my new game arcade Goober when i try to pop up a feed dialog, it was going behind the swf.
I found this post searching about how to keep the flash in the background, I may extract only the hiding part and post it here later.
EDIT:
It turns [...]

Solution of * doesnt contain ObjectFactory.class or jaxb.index

For some reason while unmarshalling something you get this error
Solution is:
Instead of

javax.xml.bind.JAXBContext jaxbCtx = javax.xml.bind.JAXBContext.newInstance("oasis.names.specification.ubl.schema.xsd.invoice_2");
or
JAXBContext context = JAXBContext.newInstance(inv.getClass().getPackage().getName());

Use a notation like this

javax.xml.bind.JAXBContext jaxbCtx = javax.xml.bind.JAXBContext.newInstance(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType.class);

Where InvoiceType will be the thing you [...]

How to validate XML with XSD in Java

After initializing xsd with JAXB Binding on Netbeans, you can use a method like this.
Both JAXB binding and schema are same but as far as i see, JAXB unmarshalling doesn’t validate XML, it just transforms it.

package unmarshallertest;

import java.io.*;
import javax.xml.bind.*;
import javax.xml.validation.*;
import oasis.names.specification.ubl.schema.xsd.invoice_2.*;

public class Main {
public static void main(String[] args) {
[...]

About my Facebook posts

Going deeper in web programming i see that i did lots of unneccesary things. So my older posts are highly low in quality.
Also Flex/Flash is far more better than JavaFX for web applications.
I would recommend this book it is available as e-book. It’s a one night stand. After reading it you will know what to [...]

JavaFX and Facebook – Part 2

My first post describes how to deploy a JavaFX application to Facebook but I realized that it gives some errors on most computers, and it is not very practical
Here I will give a more clear example
My application is a Sudoku Solver, you can see it from the Pages of my site
One major problem that i [...]

JavaFX/Java Chat Program

Here is another chat program, using JavaFX for GUI and Java on the background for SQL transactions.
One thing I realized is that you can’t bind to variables from JavaFX to Java Threads.
Using timelines instead of threads are better.
Code is pretty self explanatory:
( You should add mysql-connector-java-5.1.7-bin.jar (or newer) mysql library in order to connect mysql [...]

Reinventing the wheel

When I started this blog, I searched a lot for a good highlighter. After hours of research i found a persistent one that works ok.
After weeks, while commenting on another blog I found out that WordPress already had a code highlighting method which was a solution to all my problems also with a lot of [...]

Turning any JavaFX application into a Facebook application in 5 minutes

I say 5 minutes but it took hours for me to figure out.
On this post i will explain how simple it is to make any JavaFX application, a Facebook application, with complete source codes and step by step explanations.
There is already an app with JavaFX on Facebook but unfortunately they didn’t share their source code.
First [...]