Archives for the ‘Netbeans’ Category

JavaFX Coverflow Part 1

Warning: Apple Inc apparently has a patent on this. I’m merely doing this for performance comparison purposes and for self-education only.
It’s been about 2 weeks since my first JavaFX session. My initial distaste for the YAML syntax is largely gone. I have avoided using Netbeans, as vim is sufficient. The absence of closing tags in [...]

August 18, 2008 Ask the (JavaFX) Experts

me: What is the long term future of javafx.ext.swing.* classes in JavaFX’s
technological roadmap? Are new Node-based ui classes in-the-works to supercede this?
Joshua Marinacci: We plan to keep the swing classes but they will only be in the desktop profile. New gui classes based on nodes are in the works. These new gui components will be [...]

Netbeans Autosubmit Drop Down Boxes

The immediate attribute against the dropdown box is a bit misleading. This is wholly different from the autopostback=”true” attribute on ASP.net.
With JSF, you need to write your own javascript, or use the IDE context menu to write one for you.

Here’s a code sample showing how to change the contents of a second dropdown [...]

CachedRowSetDataProvider Bug when removeRow and appendRow called without commitChanges

Here’s the test case and stack trace

public String btnTest_action() {

getMaintdayitemDataProvider().removeRow(getMaintdayitemDataProvider().getCursorRow());
getMaintdayitemDataProvider().appendRow();
getMaintdayitemDataProvider().cursorLast(); //
return null;
}

java.lang.IllegalArgumentException: CachedRowSetRowKey[2]
[...]

Netbeans Visual Web Selecting Rows

The UI presentation layer doesn’t hold state about which rows were selected.
Winston Prakash outlines how selecting a single row in Netbeans JSF table can be done, but it was a little roundabout.
Here’s a simpler take on it:
Bind a TableRowGroup’s selected attribute to a property on your page.

<ui:tableRowGroup
[...]

Changing up the datasource name in a Netbeans project

In your personal directory, there is a Netbeans configuration file called context.xml, it has a list of datasources and their jdbc URLs
C:\Documents And Settings\Chui\.netbeans\5.5\context.xml

<context name=”java:comp”>
<context name=”env”>
<context name=”jdbc”>
<object name=”TravelPack” class=”com.sun.rave.sql.DesignTimeDataSource”>
[...]