JavaFX_ButtonControl4
Objectives
  • JDBC :: JavaFX
  • Layout Plan

    JavaFX is used here as a display board which would fetch some date from a DB with an event ( Click_Button)::
    •  ctrlbtn.setOnAction(e->ctrlbutton_click());
  •  
Complete Code: JavaFX_ButtonControl4.txt

 
-- 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;
		
		
 
Snapshots:

A)  start(Stage primaryStage)throws SQLException

B) Event ctrlbutton_click1()

Runtime Displays:

A) Display 1:: loading JavaFx Label and Button Controls

B) Display:: click event