Narayan G. Maharjan

Narayan Gopal Maharjan is a 22 years old software developer, living in the Kathmandu, Nepal and currently under-graduating on software engineering.He has keen interest at Java and Javafx programming , he started programming from his high school age and he develops software on Web(JavaEE), Desktop(Java Swing,Java FX), Mobile(Android) devices.

Lights in JavaFX 3D

It has been so long day that I have not blogged but today I am here with some new stuffs related to the JavaFX 3D. Before touching in JavaFX it is better to introduce some lights definition. There are many lights types but let not go more we are relating only two lights

Requirement:

  • JDK 8 EA build ver. 91 or later (or JDK8 General Release Version)

 
 
 Ambient Light 
An ambient light source represents a fixed-intensity and fixed-color light source that affects all objects in the scene equally. Upon rendering, all objects in the scene are brightened with the specified intensity and color. This type of light source is mainly used to provide the scene with a basic view of the different objects in it.
 

ambient lights javafx


Read More »Lights in JavaFX 3D

Pagination and style in JavaFX TableView

Hello geeks, I think most of you have already knew that JavaFX 2.2 contains the “Pagination” which is really awesome although it is not pretty hard to make our own. Lets first look over how the Pagination actually looks like.

 

1. LOOKS

Normal Pagination

Ok now that was just the normal Pagination you can modify and change as per your need . You can just style it using some CSS codes.
Read More »Pagination and style in JavaFX TableView

3d Object (Cube) Concept to Code Part 2

After all I am near to Christmas, My hands are shaking so cold: P. Today I’m writing about the post of how to create a 3d cube box in JavaFX. Well I’ve you have already read my previous post of how to create Cube in JavaFX using the technique I’ve described.

 

We’ll create here one function which can create a cube box using parameter of width. Even if we create a 3D in JavaFX, The Object will not look like a real 3D because there is absence of good Camera stuffs class. But hope these things will arrive very soon.

Here is the JavaFX function which can create the Cube3D
Read More »3d Object (Cube) Concept to Code Part 2

3d Object (Cube) Concept to Code Part 1

Hi geeks,
After a long day I’m here again . Wow Christmas is coming near !! Hope I can blog more post before Christmas 🙂
Today I’m going to explain about the 3D Concepts. Well this post is not related to specific Java Language because in this post there will be no any talks about the language specific code. But we’ll be talking about codes in next part of this post. Before going to 3D Object we need to know what is the axis and rotation.

Read More »3d Object (Cube) Concept to Code Part 1

How to bind vertical scroll in multi tableview

Hi javafx folks,

Today I will show how to make your multi table view bind with a single ScrollBar. JavaFX is becoming more and more powerful and nowadays people are using this javafx for comaparing the data between tables and it’s pretty much helpful for scrolling the tables with a single Scrollbar.

To make this things happen ; Firstly I have dived to check if there is any api for making scroll binding in both tables but I didn’t find them. I then went to see if there is any manual scroll of the tableview finally i found them scrollTo(int) which is really helpful for the programmer to scroll the tableview manually.

Lets first see how we are going to make this happen.
Read More »How to bind vertical scroll in multi tableview