JavaFx_ButtonControl3 |
Objectives:
- JavaFX and Stored Procedure
- JavaFX button and Label Control
- BorderPane and gridPane
BorderPane root = new BorderPane();
- GridPane
GridPane gPane = new GridPane();
gPane.setAlignment(Pos.CENTER);Scene:
- Scene scene = new Scene(root,300,250);
- event handling :: lambda code
ctrlbtn.setOnAction(e->ctrlbutton_click());
|
Stored Function Show_Text 
-- Function: show_text1()
-- DROP FUNCTION show_text1();
CREATE OR REPLACE FUNCTION show_text1()
RETURNS text AS
$BODY$
BEGIN
-- Return the cursor to the caller
RETURN 'HELLO WORLD';
END;
$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
ALTER FUNCTION show_text1()
OWNER TO postgres;
|
Complete Code :
JavaFx_ButtonControl3.txt |
Code SnapShots:




|
|
OutPut Before Click: 
|
Output:: after click event.

Output In Console Pane:

ant -f C:\\NetBean_Examples\\JavaCore\\JavaFXTemplate1 jfxsa-run
init:
Deleting: C:\NetBean_Examples\JavaCore\JavaFXTemplate1\build\built-jar.properties
deps-jar:
Updating property file: C:\NetBean_Examples\JavaCore\JavaFXTemplate1\build\built-jar.properties
compile:
Deleting directory C:\NetBean_Examples\JavaCore\JavaFXTemplate1\dist\lib
Copying 2 files to C:\NetBean_Examples\JavaCore\JavaFXTemplate1\dist\lib
Detected JavaFX Ant API version 1.3
jfx-deployment:
jar:
Copying 14 files to C:\NetBean_Examples\JavaCore\JavaFXTemplate1\dist\run2069203246
jfx-project-run:
Executing C:\NetBean_Examples\JavaCore\JavaFXTemplate1\dist\run2069203246\JavaFXTemplate1.jar
using platform C:\Java\jdk1.8.0_60\jre/bin/java
main block executing
HELLO WORLD
going through final block
dis-Connected to database successfully
BUILD STOPPED (total time: 1 minute 26 seconds)
|
|