JAVA, Programmimg Languages

Commonly used methods of Graphics class | JAVA | Programming Help

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… Continue reading Commonly used methods of Graphics class | JAVA | Programming Help

Advertisements
JAVA, Programmimg Languages

Create a Program using Arrays to sorts a list of integers in descending order | JAVA | Arrays | Problems

  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) {… Continue reading Create a Program using Arrays to sorts a list of integers in descending order | JAVA | Arrays | Problems

JAVA, Programmimg Languages, Tutorials

How to get file path from JFileChooser | Tech Support | Java | JFileChooser

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… Continue reading How to get file path from JFileChooser | Tech Support | Java | JFileChooser

JAVA, Programmimg Languages, Tips, Tricks

Mistakes to avoid while coding in getters and setters | Java Programming | Java Tips

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… Continue reading Mistakes to avoid while coding in getters and setters | Java Programming | Java Tips

JAVA, Programmimg Languages, Tips, Tricks

Mistakes to avoid while coding in getters and setters | Java Programming | Java Tips

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… Continue reading Mistakes to avoid while coding in getters and setters | Java Programming | Java Tips

JAVA, Programmimg Languages

JCalender

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… Continue reading JCalender

Database, JAVA, MySQL

How to connect java application with MySQL database using netbeans IDE | MySQL |Netbeans | Java | JDBC |

In this post I tell you how to connect your java application with the MySQL database by using netbeans IDE. As this post is the part of series of posts of "MySQL database". Where you can learn MySQL with JDBC without the help of guidance. As in our previous post how to create a database in… Continue reading How to connect java application with MySQL database using netbeans IDE | MySQL |Netbeans | Java | JDBC |