Posts

Registration Form Example Using JavaFX

Image
This is a simplest form for JavaFX registration layout, you can modify it whatever based on your need.

import javafx.application.Application; import javafx.geometry.Insets; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.control.PasswordField; import javafx.scene.control.TextField; import javafx.scene.layout.StackPane; import javafx.scene.layout.VBox; import javafx.stage.Stage; public class App extends Application { private StackPane root = new StackPane(); private Stage stage; @Override public void init() { Button button = new Button("OPEN"); VBox vBox = new VBox(); vBox.setSpacing(8); vBox.setPadding(new Insets(10,10,10,10)); vBox.getChildren().addAll( new Label("Your Name"), new TextField(), new Label("Your Username"), new TextField(), new Label(&…

JavaFX Login Example Codes

Image
This is example of a login form created using JavaFX

import javafx.application.Application; import javafx.geometry.Insets; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.control.PasswordField; import javafx.scene.control.TextField; import javafx.scene.layout.StackPane; import javafx.scene.layout.VBox; import javafx.stage.Stage; public class App extends Application { private StackPane root = new StackPane(); private Stage stage; @Override public void init() { Button button = new Button("OPEN"); VBox vBox = new VBox(); vBox.setSpacing(8); vBox.setPadding(new Insets(10,10,10,10)); vBox.getChildren().addAll( new Label("Your Username"), new TextField(), new Label("Your Password"), new PasswordField(), new Button("LOGIN")); root.getChi…

Windows 10 Connect

Image
Window 10 Connect is a windows program to help you work with other device, usually smartphone, so you can do like for example transferring file, etc.

To open Windows connect, you can do it by pressing window key, then type "Connect" to find the program, the other way is to click on Open center located on bottom right of your screen, after it's opened, at the bottom tiles, you click the connect tile.

Now your computer is ready for you to connect wirelessly.

JavaFX Load Local HTML File Using WebView

Image
JavaFX is platform to create GUI for desktop application in Java, it has more modern and performance than any other framework for desktop application development. It also support template using FXML and styling using CSS.

You can load an HTML file into JavaFX application using WebView, either it's available online, internet connection required or a local HTML resource, support CSS and Javascript. To load an HTML we can use WebView for example:
1. First create an html and put it on /src/main/resources/helloWorld.html
<html lang="en"> <head><title>Hello World</title></head> <body><h1>Hello world!</h1></body> </html>
2. Now for just demo, create a class name HelloWorldApplication.java that contains main method.
import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.web.WebEngine; import javafx.scene.web.WebView; import javafx.stage.Stage; public class HelloWorldApplication extends App…

Windows 10 Camera

Image
Windows 10 has a default camera application where you can take a picture or video, but camera in computer or laptop sometimes is just useless, i mean who want to take a picture sitting in a desk? But in any way it's a good addition to the OS,

The new camera program in Windows 10 has lots of settings or configuration, here's a short description of the configuration:

- Pro mode, shows advanced controls for photo and video
- Framing grade has 4 options, they are rules of third, golden ratio, cross hair and square
- Photo quality, you can specify which quality the camera will render, but it depends on your camera hardware, mine is really sucks, the maximum is 640x480
- Flicker reduction, basically to set frame-rates, the bigger the better

You can also change the location where the camera will save your photo, you can enable or disable
whether the photo will contains your coordinate location based on GPS, change some privacy settings, etc.

Windows 10 Calendar Where You Can Manage Your Events

Image
As I've already said in the previous post, Windows 10 has so many upgrade, from performance to adding more program, or just upgrade their previous program to be more modern, easy to use and more rich feature. One of the new cool addition to Windows 10 is Windows Calendar, with this program you can't just view full year calendar, you can also add an event you wanna do today or the day before. You can also add an upcoming event, it's kind of reminder so you won't forget or miss an important future event you have.

To add an event just double click on the date of your even, then fill up the event name. You can also set event location and set the time when the reminder will on, either the time of the event, 15 minutes before the event, or whenever you want the even to be on.

You can also sync your calendar event to your Microsoft account, so you will receive the reminder to your associated email.

Calendar is really useful program shipped in Windows 10 by default, you can m…

Windows Alarm & Clock

Image
Windows 10 is really amazing computer Operating System (OS). It has lots of major upgrade from the previous previous which is Windows 7 and 8. From the new cool user interfaces, adding lot of new features and performance enhancement. Windows 100 added new program Alarm & Clock, it is new program really useful for you working with alarms and clock.

As you can see on the picture on alarms and clock program, you can add some cities and know what their time is currently at, and you can also see that the map has dark and light, dark indicate that the place is currently in day night and and light means day light. If you have friends or someone overseas, this map can be helpful for you.

You can also set an alarm to get you up in the morning or whatever time you want to set, the alarm doesn't care if your computer is sleep, as long as it's has enough power or not in low battery condition, it will on automatically in time.

Timer and stopwatch maybe not that big deal, but still som…