FXML communicates to FXML via FXControllers and Interface

Hello guys, I’m back after my lots of works and stuffs that’s why this post got delayed. Anyway now I’m going to demonstrate today about how to communicate between FXML using FXController classes. Some of my commentator also asked me to share this communication of FXML so I’m blogging for the same. Today I’m going to just continue the blog post of  previous post I’ve blogged about FXML Stuffs (include and define) . So If you have not started reading those previous blog then please have a look because the things I’m going to tell is related to them.

Anyway Let’s summarize the previous blog.

  • Main.fxml (The main container of all fxml)
  • Home.fxml (the tab content of Home Tab)
  • About.fxml (the tab content of About Tab)
  • (this is just the executor class)

Now In today’s post we are having one more extras class which is listed below.

  • (The java interface)

Before going to start this communication between fxml . Let’s have a look at how the flow gets working.

Read More »FXML communicates to FXML via FXControllers and Interface

GUI (Graphical User Interface)

An applet is the software components or a small application which can run the program via JAVA programming Language.

Applets are on either desktop or on the web pages too.
The applets are mostly used for the GUI end user clients. The Applets are in GUI form.

Basically GUI is being used by the help of the JFrame which is located at the javax.swing

JFrame is the first platform for the deployment of the GUI applications. The Container classes are used to add the components at JFrame.

Some essential classes for the developing GUI app are:

  • JFrame
  • JPanel
  • JLabel
  • JButton
  • JTextField
  • and other classes ..

First of all if we are going to develop a small GUI program which can display the only the text;

[source language=’java’]
//import directives
import javax.swing.*;

public class Text1 extends JFrame{

public Text1() {
JLabel label = new JLabel(“Hello JAVA !!!”);



public static void main (String[] args) {
// invoking constructor
new Text1();


Read More »GUI (Graphical User Interface)

Interface Class

Actually Interface are just like a class where it consists only constants and they
We can extend interface via interfaces
We can implement the interface via classes.
In interface needn’t use the “public” or “abstract” keywords – all methods
declared by an interface are automatically public and abstract by default.
A simple example of interface implement is given below.
public interface testInterface {
//one of the method without method body
void disp(String text);
For implementing this interface through normal class we follow below step:Read More »Interface Class