Get Hired

Jobs from Indeed

Sunday, June 10, 2018

JTable #11 | Print with header footer and landscape


1. Print table data with header, footer
2. Set page number to footer
3. Change the page orientation to Landscape

https://youtu.be/-XugNlQ-JZc


Wednesday, June 6, 2018

PDF box tutorial #3 | set color and page size in PDF using java

example discuss for
1. add text with specified color
2. adding lines, rectangles with color,
3. set background color of PDF page,
4. set border color of PDF page
5. landscape orientation,
6. setting page size.
Plz. view its previous video to learn basics
Part-1 - https://www.youtube.com/watch?v=LU5zXTA6tFk
Part-2 - https://www.youtube.com/watch?v=h8Ww067SpDQ


https://youtu.be/PPMtnPytcl8
https://youtu.be/PPMtnPytcl8

PDF box tutorial #2 | Adding image in PDF using java

PDFbox
Working with images in PDF using java
Learn to generate pdf file using java and adding image into it.
See its part - 1 first from following link
https://www.youtube.com/watch?v=LU5zXTA6tFk

https://youtu.be/h8Ww067SpDQ
https://youtu.be/h8Ww067SpDQ

PDF box tutorial #1 | create PDF using java

Learn to generate pdf file using java and adding text into it.
Required : pdfbox API
https://youtu.be/LU5zXTA6tFk
https://youtu.be/LU5zXTA6tFk

Wednesday, May 9, 2018

Java Exception Handling | #5 | Custom exception class

Sometime we need our own custom exception class to work with. Here I have discussed about two different ways to create custom exception class.

Please do like, comment and share to rich to more needy people.

Wednesday, May 2, 2018

Multithreading : Part 13 - Synchronized block

How to use synchronized block, if the shared object is not pre-monitored, that is, if the designer of shared object has not monitored or synchronized it's method.

Sunday, March 25, 2018

Multithreading : Part 12 - Synchronization


A small java program to understand the need of synchronization.

Multithreading : Part 11 - Synchronization needed in real life



When there are many threads trying to access one shared resource, and are trying to fight over priorities, it isn’t good for your program. You might face inconsistency issues or unexpected thread interference.
To make sure a resource is being used by just one thread at a time, we make use of synchronization.
Just imagine this as a snack someone offers to you and your family when you visit their house. Each person in the room is a thread, and that delicious snack in the middle is a shared resource. Now wearing a mask of a good lad you are supposed to allow everyone to get a piece of it. That’s you and your siblings behaving in a synchronized way. That’s what synchronization in Java is about too.

Wednesday, March 14, 2018

How to create executable jar file

https://youtu.be/ex2TtJ_9aIk

Multithreading : Part 10 : create thread with Runnable

https://youtu.be/hEeb-NN0nb4

Multithreading : Part 9 : create thread

https://youtu.be/_FmskGFrEvg

https://youtu.be/_FmskGFrEvg

https://youtu.be/_FmskGFrEvg

Thread vs Runnable

Java lets you create thread in following two ways:-
By implementing the Runnable interface.
By extending the Thread
Let’s see how both the ways help in implementing Java thread.
Runnable Interface
The easiest way to create a thread is to create a class that implements the Runnable interface.
To implement Runnable interface, a class need only implement a single method called run( ), which is declared like this:
public void run( )
Inside run( ), we will define the code that constitutes the new thread.
Example:
public class MyClass implements Runnable {
public void run(){
System.out.println("MyClass is running");
}
}
To execute the run() method by a thread, pass an instance of MyClass to a Thread in its constructor as follows:
Thread t1 = new Thread(new MyClass ());
t1.start();
When the thread is started it will call the run() method of the MyClass instance instead of executing its own run() method. The above example would print out the text “MyClass is running“.
Extending Java Thread
The second way to create a thread is to create a new class that extends Thread, then override the run() method and then to create an instance of that class. The run() method is what is executed by the thread after you call start(). Here is an example of creating a Java Thread subclass:
public class MyClass extends Thread {
public void run(){
System.out.println("MyClass is running");
}
}
To create and start the above thread you can do like this:
MyClass t1 = new MyClass ();
t1.start();
When the run() method executes it will print out the text “MyClass is running“.

Thread vs Runnable

https://youtu.be/mtiZVJDL0w0

Sunday, March 11, 2018

How to set background image

How to send image in background of JFrame

Some midifmodifica to make the image in center

A different way to set background image, that can resize the image with the size of JFrame to fill the entire region.

Wednesday, March 7, 2018

Unzip a file using Java

I have uploaded a video to explain, that how can we unzip or decompress a zip file. Jus follow the link below, learn and enjoy.

Sunday, February 25, 2018

How to zip a file in Java

Basic requirement to zip or compress a file:-
ujava.util.zip package provides necessary classes for reading and writing the standard ZIP and GZIP file formats.
uWe need following packages to work with:
ujava.io
ujava.util.zip
uClasses required to work with
uFileInputStream, FileOutputStream
uZipEntry
uZipOutputStream
To see in details please go through the following link

Monday, February 19, 2018

Multithreading - Part 3 : Running two threads simultaneously

https://youtu.be/4qSJhP7R46o

Multithreading - Part 2 : About main thread

https://youtu.be/4sGmxub3Kfk

Multithreading : Intro

https://youtu.be/pAH0a60_nlY

Java Collection : Part 16 : Using HashMap with entrySet()

https://youtu.be/UslxRX489V8

Java Collection : Part 15 : Using HashMap

https://youtu.be/FClS1d3AL_Q

Java Collection : Part 14 : Map interface introduction

https://youtu.be/UI_Ew_K8t78

WhatsApp Trick : How to edit image before sending

https://youtu.be/dJLafQjsh98

WhatsApp trick : send messages in any language

https://youtu.be/3LMuWiftbuI

how to see starred messages of WhatsApp

https://youtu.be/2wyBC1a0ItQ

Java Collection : Part 13 : using retainAll()

https://youtu.be/Cn96de_p5MU

Java Collection : Part 12 : Iterate custom object

https://youtu.be/9dDM2XSTa8Q

Java Collection : Part 11 : When and why to override equals() method

https://youtu.be/a4oRSTCbolY

Java Collection : Part 10 : Bi-directional iteration using ListIterator

https://youtu.be/hxMl-GHQ5Xk

Java Collection : Part 9 : Iterate custom object from list

https://youtu.be/VpgDFOnWais

Java Collection : Part 8 : Adding custom object to list

https://youtu.be/yx9m51xsjYw

Java Collection : Part 8 : Adding custom object to list

https://youtu.be/yx9m51xsjYw

Java Collection : Part 7 : How to use Iterator - 2

https://youtu.be/I-IJegBOw0s

Java Collection : Part 6 : How to use Iterator - 1

https://youtu.be/7iVNrmjNRkw

Java collection 5 : iterator

https://youtu.be/i1Jfu0sgc0k