How to Print JFrame in Java | Java Support | Project Solutions | Tech Blicks
How to Print Jframes in Java? Learn the code of Printing JFrames in JAVA. By Using this code you can Print your Jframe formats.
How to Print Jframes in Java? Learn the code of Printing JFrames in JAVA. By Using this code you can Print your Jframe formats.
I have get many messages asking how to prevent opening of Jframes multiple times in Java? Hmm.. it’s a pretty good question. I see most of the programmers, students or programming aspirants face the same problem. So the main motive of writing this post is to provide the answer of this question to all. I …
In this post, I am writing the some commonly used methods of graphical class. public abstract void drawString(String str, int x, int y): is used to draw the specified string. public void drawRect(int x, int y, int width, int height): draws a rectangle with the specified width and height public abstract void fillRect(int x, int …
Commonly used methods of Graphics class | JAVA | Programming Help Read More »
import java.util.Scanner; public class Main { private static Scanner scanner=new Scanner(System.in); public static void main(String[] args) { int[] myIntegers = getIntegers(5); int[] sorted=sortIntegers(myIntegers); printArray(sorted); } public static int[] getIntegers(int capacity) { int[] array=new int[capacity]; System.out.println(“Enter “+ capacity+” integers values”); for (int i=0;i<array.length;i++) { array[i]=scanner.nextInt(); } return array; } public static void printArray(int[] array) { …
While using Jfilechooser, sometimes we need the path of the file which we are choosing. In some cases, we use the Jfilechooser to get the path of the file in runtime. It’s not a difficult task to get the path of the file from the Jfilechooser. You can get the path of the file, just …
How to get file path from JFileChooser | Tech Support | Java | JFileChooser Read More »
Hi friends, in this post , I’ll taught you about the simple mistakes that you have to avoid while programming with getters and setters. In Java programming, it seems that writing getters and setters for instance fields of a class is very straightforward without any special care. Especially with auto-generate features provided by modern IDEs …
Mistakes to avoid while coding in getters and setters | Java Programming | Java Tips Read More »
Introduction JCalendar is a Java date chooser bean for graphically picking a date. JCalendar is composed of several other Java beans, a JDayChooser, a JMonthChooser and a JYearChooser. All these beans have a locale property, provide several icons (Color 16×16, Color 32×32, Mono 16×16 and Mono 32×32) and their own locale property editor. So they …
In this post, I teach u how to create a database in MySQL command line Window. I know there are many websites and blogs where you can learn this. So what is special in mine post?? The answer is that on all the other websites and blogs u can’t understand properly the whole MySQL without …
How to create Database? | MySQL | MySQL command line window | (In Java) Read More »
1) Which of the following statement is/are true? i) The name of a java program file must match the name of the class with the extension .javaii) Two methods cannot have the same name in javaA. i- onlyB. ii- onlyC. Both i and iiD. None of the above 2) Which of the following represent(s) of …
MCQ on Java Programming Language [Solved PDF] - 12 Read More »
1. If m and n are int type variables, what will be the result of the expression m%n when m=-14 and n=-3? A) 4 B) 2 C) -2 D) -4 2. Consider the following code if(number>=0) if(number>0) system.out.println(“Number is positive”); else system.out.println(“Number is negative”); What will be the output if number is equal to 0? …