
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

Converting Code to Clarity
About
A professional technical content writer with Java programming skills. I have a desire to write informative and detailed Java articles for both beginner and professional developers. Having a strong background in HTML, CSS, JavaScript, Java, JDBC, JSP, Spring, and Hibernate.
Alshifa Hasnain has Published 283 Articles

Alshifa Hasnain
1K+ Views
In this article, we will learn to sort the items of a JComboBox in Java. A JComboBox is a basic Swing component, and one of its common requirements is to show the items in sorted order. What is a JComboBox? A JComboBox is a subclass of the JComponent class, and ... Read More

Alshifa Hasnain
534 Views
In this article, we will learn to close resources automatically in Java. Resource management becomes important in Java programming to prevent memory leaks and system instability. Java provides several options for closing resources automatically: files, database connections, and network sockets. The Problem with Manual Resource Closure Traditionally, developers needed to ... Read More

Alshifa Hasnain
4K+ Views
In this article, we will learn to add/insert a JCheckBox inside a JTable cell in Java. JTable is a powerful component for displaying and editing data in tables. A frequent requirement is to add checkboxes to table cells for boolean data or selection. JTable A JTable is a subclass of ... Read More

Alshifa Hasnain
313 Views
In this article, we will learn to implement the HTML text of a JButton in Java. The Swing JButton component has a useful feature in which developers can use HTML to style button labels. This feature enables us to make buttons appear more appealing by using simple HTML elements in ... Read More

Alshifa Hasnain
877 Views
In this article, we will learn to disable the cut, copy, and paste functionality of a JTextArea in Java. While developing Java Swing applications, you may need a situation where you want to restrict user input to text components. Cutting, copying, and pasting is usually needed to be disabled for ... Read More

Alshifa Hasnain
5K+ Views
In this article, we will learn to draw a rounded rectangle using the Graphics object in Java. Drawing shapes is a basic feature of Java 2D graphics programming. Though the Graphics class offers methods for drawing common rectangles, drawing rounded rectangles involves some special techniques. Graphics Class In Java, the ... Read More

Alshifa Hasnain
5K+ Views
In Java, the EventListener interface defines the methods that must be implemented by an event handler for a particular kind of event, whereas an Event Adapter class provides a default implementation of the EventListener interface. Java EventListener The EventListeners are the backbone of every component to handle the events. Every ... Read More

Alshifa Hasnain
1K+ Views
A Java program can execute in the Java Virtual Machine (JVM) and uses the heap memory to manage the data. If our Java program requires more memory, there is a possibility that the Java Virtual Machine(JVM) will begin to throw OutOfMemoryError instances when attempting to instantiate an object in Java. ... Read More

Alshifa Hasnain
1K+ Views
In Java, a JTextField can be used for plain text, whereas a JFormattedTextField is a class that extends JTextField, and it can be used to set any format to the text that it contains, phone numbers, e-mails, dates, etc. JTextField A JTextField is one of the most important components ... Read More

Alshifa Hasnain
472 Views
In this article, we will learn to set a background color for JSplitPane in Java. JSplitPane is a Swing component that divides two (or more) components with a resizable divider. By default, JSplitPane does not directly support background color changes due to its complex structure. What is a JSplitPane? A ... Read More