<!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1"> <title>javascript</title> </head> <body > <p id="demo"></p> <p id="demo1"></p> <script type="text/javascript"> var a=0; var result=""; while (a <= 10) { result += "while <br>" + a; a++; } var b=0; var result1=""; do { result1 += "do <br>" + b; b++; } while (b <= 10); document.getElementById("demo").innerHTML= result ; document.getElementById("demo1").innerHTML= result1 ; </script> </body> </html>
Tuesday, November 10, 2015
Javascript Tutorial For Beginners 10 # JavaScrip while Loop and do/while...
Monday, November 9, 2015
Javascript Tutorial For Beginners 10 # JavaScrip while Loop and do/while...
<!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1"> <title>javascript</title> </head> <body > <p id="demo"></p> <p id="demo1"></p> <script type="text/javascript"> var a=0; var result=""; while (a <= -1) { result += "while <br>" + a; a++; } var b=0; var result1=""; do { result1 += "do <br>" + b; b++; } while (b <= -1); document.getElementById("demo").innerHTML= result ; document.getElementById("demo1").innerHTML= result1 ; </script> </body> </html>
Javascript Tutorial For Beginners 9 # JavaScript Switch Statement
<!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1"> <title>javascript</title> </head> <body > <p id="demo"></p> <script type="text/javascript"> var score = 95; var result ; switch (score) { case 100: case 95: case 90: result = "very good"; break; case 60: result = "good"; break; case 40: result = "ok"; break; default: result = "unknown"; } document.getElementById("demo").innerHTML= result ; </script> </body> </html>
Sunday, November 8, 2015
Javascript Tutorial For Beginners 7 # JavaScript Events
<!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1"> <title>javascript</title> </head> <body > <!--onchange, onclick, onmouseover, onmouseout, onkeydown, onload --> <input type="text" onkeydown="show ()"> <h1 id="myid"></h1> <script type="text/javascript"> function show () { document.getElementById("myid").innerHTML=Date() } </script> </body> </html>
Saturday, November 7, 2015
JavaFx Tutorial For Beginners 12 - JavaFX ComboBox
package application; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.stage.Stage; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.layout.BorderPane; public class Main extends Application { @Override public void start(Stage primaryStage) { try { Parent root = FXMLLoader.load(getClass().getResource("/application/Main.fxml")); Scene scene = new Scene(root); scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm()); primaryStage.setScene(scene); primaryStage.show(); } catch(Exception e) { e.printStackTrace(); } } public static void main(String[] args) { launch(args); } }
package application; import java.net.URL; import java.util.ResourceBundle; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.ComboBox; import javafx.scene.control.Label; public class MainController implements Initializable{ @FXML public Label myLabel; @FXML public ComboBox<String> combobox; ObservableList<String> list = FXCollections.observableArrayList("Mark","Tom", "John","Jack"); @Override public void initialize(URL location, ResourceBundle resources) { // TODO Auto-generated method stub //combobox.setItems(list); } public void comboChanged(ActionEvent event) { combobox.getItems().addAll("Ram","Ben", "STEVE","Ma"); //myLabel.setText(combobox.getValue()); } public void buttenAction(ActionEvent event) { combobox.getItems().addAll("Ram","Ben", "STEVE","Ma"); //myLabel.setText(combobox.getValue()); } }
<?xml version="1.0" encoding="UTF-8"?> <?import javafx.scene.control.*?> <?import java.lang.*?> <?import javafx.scene.layout.*?> <?import javafx.scene.layout.AnchorPane?> <?import javafx.collections.*?> <AnchorPane prefHeight="300.0" prefWidth="300.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/8.0.40" fx:controller="application.MainController"> <children> <ComboBox fx:id="combobox" layoutX="75.0" layoutY="108.0" onAction="#comboChanged" prefHeight="51.0" prefWidth="172.0" promptText="Select Name" > <items> <FXCollections fx:factory="observableArrayList"> <String fx:value="Item 1" /> <String fx:value="Item 2" /> <String fx:value="Item 3" /> <String fx:value="Item 4" /> </FXCollections> </items> </ComboBox> <Label fx:id="myLabel" layoutX="75.0" layoutY="44.0" prefHeight="51.0" prefWidth="172.0" text="Label" /> <Button layoutX="109.0" layoutY="203.0" mnemonicParsing="false" onAction="#buttenAction" text="Button" /> </children> </AnchorPane>
Wednesday, November 4, 2015
JavaFx Tutorial For Beginners 10 - Create Login Application
JavaFx Tutorial For Beginners 10 - Create Login Application

package application; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.stage.Stage; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.layout.BorderPane; public class Main extends Application { @Override public void start(Stage primaryStage) { try { Parent root = FXMLLoader.load(getClass().getResource("/application/Login.fxml")); Scene scene = new Scene(root,400,400); scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm()); primaryStage.setScene(scene); primaryStage.show(); } catch(Exception e) { e.printStackTrace(); } } public static void main(String[] args) { launch(args); } }
package application; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.control.TextField; import javafx.stage.Stage; public class MainController { @FXML private Label lblStatus; @FXML private TextField txtUserName; @FXML private TextField txPassword; public void Login(ActionEvent event) throws Exception { if (txtUserName.getText().equals("user") && txPassword.getText().equals("pass")) { lblStatus.setText("Login Success"); Stage primaryStage = new Stage(); Parent root = FXMLLoader.load(getClass().getResource("/application/Main.fxml")); Scene scene = new Scene(root,400,400); scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm()); primaryStage.setScene(scene); primaryStage.show(); } else { lblStatus.setText("Login Failed"); } } }
<?xml version="1.0" encoding="UTF-8"?> <?import javafx.scene.text.*?> <?import javafx.scene.control.*?> <?import java.lang.*?> <?import javafx.scene.layout.*?> <?import javafx.scene.layout.AnchorPane?> <AnchorPane prefHeight="300.0" prefWidth="300.0" xmlns="http://javafx.com/javafx/8.0.40" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.MainController"> <children> <Button layoutX="124.0" layoutY="242.0" mnemonicParsing="false" onAction="#Login" text="Login"> <font> <Font size="18.0" /> </font> </Button> <TextField fx:id="txtUserName" layoutX="51.0" layoutY="98.0" promptText="UserName"> <font> <Font size="18.0" /> </font> </TextField> <PasswordField fx:id="txPassword" layoutX="51.0" layoutY="150.0" promptText="Password"> <font> <Font size="18.0" /> </font> </PasswordField> <Label fx:id="lblStatus" layoutX="12.0" layoutY="42.0" prefHeight="25.0" prefWidth="267.0" text="Status" textFill="#d02d1b"> <font> <Font size="18.0" /> </font> </Label> </children> </AnchorPane>
<?xml version="1.0" encoding="UTF-8"?> <?import javafx.scene.text.*?> <?import javafx.scene.control.*?> <?import java.lang.*?> <?import javafx.scene.layout.*?> <?import javafx.scene.layout.AnchorPane?> <AnchorPane prefHeight="300.0" prefWidth="300.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/8.0.40"> <children> <Label layoutX="106.0" layoutY="113.0" text="Main Window"> <font> <Font size="18.0" /> </font> </Label> </children> </AnchorPane>

Thursday, October 29, 2015
JavaFx Tutorial For Beginners 6 - Events with JavaFX Scene Builder
package application; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.stage.Stage; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.layout.BorderPane; public class Main extends Application { @Override public void start(Stage primaryStage) { try { //BorderPane root = new BorderPane(); Parent root = FXMLLoader.load(getClass().getResource("/application/Main.fxml")); Scene scene = new Scene(root,400,400); scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm()); primaryStage.setScene(scene); primaryStage.show(); } catch(Exception e) { e.printStackTrace(); } } public static void main(String[] args) { launch(args); } }
package application; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.scene.control.Label; import java.util.Random; public class MainController { @FXML private Label myMessage; public void generateRandom(ActionEvent event) { Random rand = new Random(); int myrand = rand.nextInt(50) + 1; myMessage.setText(Integer.toString(myrand)); //System.out.println(Integer.toString(myrand)); } }
<?xml version="1.0" encoding="UTF-8"?> <?import java.lang.*?> <?import javafx.scene.control.*?> <?import javafx.scene.layout.*?> <?import javafx.scene.layout.AnchorPane?> <AnchorPane prefHeight="300" prefWidth="500" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/8.0.40" fx:controller="application.MainController"> <children> <Button fx:id="clickme" layoutX="213.0" layoutY="202.0" mnemonicParsing="false" onAction="#generateRandom" text="Click me" /> <Label fx:id="myMessage" layoutX="116.0" layoutY="59.0" prefHeight="112.0" prefWidth="229.0" /> </children> </AnchorPane>
Wednesday, October 21, 2015
JavaFx Tutorial For Beginners 4 - How to Use Lambda Expressions to Handl...
import javafx.application.Application; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.StackPane; import javafx.scene.layout.VBox; import javafx.stage.Stage; public class HelloWorld extends Application{ public static void main(String[] args) { launch(args); } @Override public void start(Stage primaryStage) throws Exception { Button btn = new Button("Click me"); Button exit = new Button("Exit"); exit.setOnAction(e -> { System.out.println("exit this App"); System.exit(0); }); btn.setOnAction(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent event) { System.out.println("hello world"); System.out.println("hello world"); } }); VBox root = new VBox(); root.getChildren().addAll(btn, exit); Scene scene = new Scene(root,500,300); primaryStage.setTitle("My title"); primaryStage.setScene(scene); primaryStage.show(); } }
JavaFX 8 Event Handling Examples
Using Lambda Expressions of Java 8 in Java FX
Lambda expressions don't work in Java 8
Implement event handler using Lambda Expression
Java programming with lambda expressions
JavaFx Tutorial For Beginners 3 - How to Create Your First JavaFX Applic...
import javafx.application.Application; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.StackPane; import javafx.stage.Stage; public class HelloWorld extends Application{ public static void main(String[] args) { launch(args); } @Override public void start(Stage primaryStage) throws Exception { Button btn = new Button("Click me"); btn.setOnAction(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent event) { System.out.println("hello world"); } }); StackPane root = new StackPane(); root.getChildren().add(btn); Scene scene = new Scene(root,500,300); primaryStage.setScene(scene); primaryStage.show(); } }
Step by Step: How to build your first JavaFX application
Developing a JavaFX Hello World Application
Your First JavaFX Application
Hello World, JavaFX
Getting Started with JavaFX
Searches related to create first javafx application
javafx application examples
javafx application tutorial
javafx application source code
javafx application development
javafx application icon
javafx application thread
javafx tutorial pdf
javafx tutorial eclipse
Thursday, October 15, 2015
HTML5 Tutorial For Beginners 14 # HTML Video Tag
<!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1"> <title>Html</title> </head> <body> <video controls loop muted width="600" height="300" poster="HTML5.png"> <source src="html5.mp4" type="video/mp4"> </video> </body> </html>
Searches related to html video tag
html video tag youtube
html video code
html video tag autoplay
html video player
html video tag controls
html video tag not working
html video tag autoplay loop
html video tag poster
Subscribe to:
Posts (Atom)
Partner Sites
VideoToGifs.com
EasyOnlineConverter.com
SqliteTutorials.com
Top Online Courses From ProgrammingKnowledge
Python Course http://bit.ly/2vsuMaS
Java Coursehttp://bit.ly/2GEfQMf
Bash Coursehttp://bit.ly/2DBVF0C
Linux Coursehttp://bit.ly/2IXuil0
C Course http://bit.ly/2GQCiD1
C++ Coursehttp://bit.ly/2V4oEVJ
PHP Coursehttp://bit.ly/2XP71WH
Android Coursehttp://bit.ly/2UHih5H
C# Coursehttp://bit.ly/2Vr7HEl
JavaFx Coursehttp://bit.ly/2XMvZWA
NodeJs Coursehttp://bit.ly/2GPg7gA
Jenkins Course http://bit.ly/2Wd4l4W
Scala Coursehttp://bit.ly/2PysyA4
Bootstrap Coursehttp://bit.ly/2DFQ2yC
MongoDB Coursehttp://bit.ly/2LaCJfP
QT C++ GUI Coursehttp://bit.ly/2vwqHSZ

