Skip to main content

Posts

Showing posts from 2016

Creating a new JavaFX application with NetBeans IDE

Step 1 : Open NetBeans IDE (Download from Here ) Step 2 : File - NewProject, then select JavaFx - > JavaFXML Application Step 3 : Give Project Name,  Location & Folder              Select JavaFX platform as JDK 8 Step 4 : Then a new project is created with following structure, Step 5 : Goto TestJavaFXApplication.java and Run & we will get following output. That's it... Go Ahead And Enjoy !!!  Learn More From Here Example Sample Calculator JavaFX Application   

JavaFX

JavaFX JavaFx is a set of graphics & media packages that enables developers to design rich client applications.  The look and feel of JavaFX applications can be customized. Cascading Style Sheets (CSS) separate appearance and style from implementation so that developers can concentrate on coding. Graphic designers can easily customize the appearance and style of the application through the CSS. If you have a web design background, or if you would like to separate the user interface (UI) and the back-end logic, then you can develop the presentation aspects of the UI in the FXML scripting language and use Java code for the application logic. KeyFeatures: Java API's FXML and Scene Builder WebView Swing interoperability Built-in UI controls and CSS Modena theme 3D Graphics Features Canvas API Printing API Rich Text Support Multitouch Support Hi-DPI support Hardware-accelerated graphics pipeline High-performance media engine Self-contained appli

Object എങ്ങനെ ഉണ്ടാക്കാം ?

നമ്മൾ നേരത്തെ പറഞ്ഞപോലെ Object റ്റെ ഒരു blue print ആണു Class, new എന്നുപറഞ്ഞ keyword ഉപയോഗിച്ചാണ്‌  നമ്മൾ പുതിയ ഒരു Object ഉണ്ടാക്കുനത് . നമുക്ക്  Box എന്നൊരു Object നെ example ആയി നോക്കാം. class Box { double width ; double height ; double depth ; }  Object declare ചെയുന്നത്  ഇങ്ങനെയാണ് , Box mybox = new Box (); ഇതിന്റെ  effect  ഇങ്ങനെയാണ് , Box b1 = new Box (); Box b2 = b1 ;

ജാവാ വളരെ സിമ്പിൾ ആണ് , പവർഫുൾ ഭയങ്കര പവർഫുൾ ആണ്.

ജാവ യെ  കുറിച്ച്  മലയാളത്തിൽ  ഡോകുമെന്റുകളോ  ബ്ലോഗ്‌കളോ  കൂടുതൽ ഇല്ലാത്തതുകൊണ്ട് എനികറിയവുന്നത് ഷെയർ ചെയ്യാം എന്ന് വിചാരിച്ചു .  ജവയെ കുറിച്ച് പറയുകയാണെങ്കിൽ  ജാവാ വളരെ സിമ്പിൾ ആണ് , പവർഫുൾ  ഭയങ്കര പവർഫുൾ ആണ്. :) 1. നമ്മടെ Sun MicroSystems 1995 ൽ തുടങ്ങി വച്ചാ സംഭവമാണിത് . 2. ഇപ്പൊ ജാവയുടെ എട്ടാമത്തെ വെർഷൻ  വരെ ഇറങ്ങികഴിഞ്ഞു . ജാവയുടെ തിയറിയെ കുറിച്ച് എനിക്ക് പറയാൻ താല്പര്യം  ഇല്ലാ, അത് അറിവിള്ളവർ നല്ലപോലെ പറഞ്ഞിടുണ്ട്. നമുക്ക് ഡയറക്റ്റ്  ആയി കോഡിംഗ് പാർട്ടിലേക്ക്  പോകാം. എങ്ങനെയാ ജാവ ഇൻസ്റ്റോൾ ചെയണ്ടേ എന്നൊക്കെ ഒന്ന് ഗൂഗിൾനോട് ചോദിച്ചാ മതി പുള്ളി പറഞ്ഞുതരും. പിന്നെ എല്ലാവരും പറയുന്നു ജാവാ Object  Oriented ആണെന്ന് . അതെ ജാവാ Object Oriented ആണ് . എന്താണ് Object ?, Object  നു വച്ചാ ഒരു സാധനം അത്രതന്നെ. ഇപ്പൊ example പറയുകയാണെങ്കിൽ Book ഒരു സാധനമാണ് . Book റ്റെ പ്രതേകത എന്തൊക്കെ അന്നെന്നുവച്ചാ ആതിനൊരു Auther ഉണ്ടാകും, അതൊരു Category ൽ പെട്ട book ആയിരിക്കും (Novel / Academic ) പിന്നെ ഓരോ bookനും അതിന്റെതായ ഒരു User ഉണ്ടാകും (Children / Teenage ) അങ്ങനെ അങ്ങനെ book റ്റെതയ കുറ

Java Dequeue

Problem In computer science, a double-ended queue (dequeue, often abbreviated to deque, pronounced deck) is an abstract data type that generalizes a queue, for which elements can be added to or removed from either the front (head) or back (tail). Deque interfaces can be implemented using various types of collections such as LinkedList or ArrayDeque classes. For example, deque can be declared as: Deque deque = new LinkedList<>(); or Deque deque = new ArrayDeque<>(); In this problem, you are given NN integers. You need to find the maximum number of unique integers among all the possible contiguous subarrays of size MM. Note: Time limit is 33 second for this problem. Input Format The first line of input contains two integers NN and MM: representing the total number of integers and the size of the subarray, respectively. The next line contains NN space separated integers. Constraints 1≤N≤1000001≤N≤100000 1≤M≤1000001≤M≤100000 M≤NM≤N The numbers in the arra

Java String Token

Problem    Given a string, find number of words in that string.     For this problem a word is defined by a string of one or more english alphabets. Input Format   A string not more than 400000 characters long.    The string can be defined by following regular expression:       [A-Za-z !,?.\_'@]+   That means the string will only contain english alphabets,    blank spaces and this characters: "!,?._'@". Output Format   In the first line, print number of words nn in the string.    The words don't need to be unique. In the next nn lines,    print all the words you found in the order they appeared in the input. Sample Input   He is a very very good boy, isn't he? Sample Output 10 He is a very very good boy isn t he Solution import java.io.* ; import java.util.* ; public class Solution { public static void main ( String [] args ){ Scanner scan