×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Tutorix
Login
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Q/A
Library
eBooks
Courses
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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
Raja
has Published
806
Answers
What is the importance of SwingUtilities class in Java?
AWT
Java
Object Oriented Programming
Programming
Swing
raja
Published on 05-Jul-2019 13:52:30
In Java, after swing components displayed on the screen, they can be operated by only one thread called Event Handling Thread. We can write our code in a separate block and can give this block reference to Event Handling thread. The SwingUtilities class has two important static methods, invokeAndWait() and invokeLater() to use ...
Read More
How can we make JTextField accept only numbers in Java?
AWT
Java
Object Oriented Programming
Programming
Swing
raja
Published on 05-Jul-2019 12:06:51
By default, a JTextField can allow numbers, characters, and special characters. Validating user input that is typed into a JTextField can be difficult, especially if the input string must be converted to a numeric value such as an int.In the below example, JTextField only allows entering numeric values.Exampleimport java.awt.*; import java.awt.event.*; import javax.swing.*; public class ...
Read More
Explain the architecture of Java Swing in Java?
AWT
Java
Object Oriented Programming
Programming
Swing
raja
Published on 05-Jul-2019 10:56:57
Java Swing is a set of APIs that provides a graphical user interface (GUI) for the java programs. The Java Swing was developed based on earlier APIs called Abstract Windows Toolkit (AWT). The Java Swing provides richer and more sophisticated GUI components than AWT. The GUI components are ranging from ...
Read More
What are the differences between JRadioButton and JCheckBox in Java?
AWT
Java
Object Oriented Programming
Programming
Swing
raja
Published on 05-Jul-2019 08:08:44
Both JRadioButton and JCheckBox components can extend JToggleButton class, the main difference is that JRadioButton is a group of buttons in which only one button can be selected at a time whereas JCheckBox is a group of checkboxes in which multiple items can be selected at a time.JRadioButtonA JRadioButton is a component that represents an item with ...
Read More
How can we call garbage collection (GC) explicitly in Java?
Java
Object Oriented Programming
Programming
raja
Published on 04-Jul-2019 19:35:31
When there are no more references to an object, the object is finalized and when the Garbage Collection starts these finalized objects get collected this will done automatically by the JVM. We can call garbage collection directly but it doesn't guarantee that the GC will start executing immediately.We can call ...
Read More
Can we define a parameterized constructor in an abstract class in Java?
Java
Object Oriented Programming
Programming
raja
Published on 04-Jul-2019 15:32:11
Yes, we can define a parameterized constructor in an abstract class.Conditions for defining a parameterized constructor in an abstract classWe need to make sure that the class which is extending an abstract class have a constructor and it can call the superclass parameterized constructor.We can call the superclass parameterized constructor ...
Read More
What is an Event Handling and describe the components in Event Handling in Java?
AWT
Java
Object Oriented Programming
Programming
Swing
raja
Published on 04-Jul-2019 14:04:34
The GUI in Java processes the interactions with users via mouse, keyboard and various user controls such as button, checkbox, text field, etc. as the events. These events are to be handled properly to implement Java as an Event-Driven Programming.Components in Event HandlingEventsEvent SourcesEvent Listeners/HandlersEventsThe events are defined as an object that ...
Read More
What are the differences between JTextField and JTextArea in Java?
AWT
Java
Object Oriented Programming
Programming
Swing
raja
Published on 04-Jul-2019 12:01:30
The main difference between JTextField and JTextArea in Java is that a JTextField allows entering a single line of text in a GUI application while the JTextArea allows entering multiple lines of text in a GUI application.JTextFieldA JTextFeld is one of the most important components that allow the user to an input text value in a single ...
Read More
How can we implement a splash screen using JWindow in Java?
Java
Object Oriented Programming
Programming
Swing
raja
Published on 04-Jul-2019 09:17:56
A JWindow is a container that can be displayed anywhere on the user desktop. It does not have the title bar, window management buttons, etc like a JFrame.The JWindow contains a JRootPane as its only child class. The contentPane can be the parent of any children of the JWindow. Like a JFrame, a JWindow is another top-level ...
Read More
What are the differences between JFrame and JDialog in Java?
AWT
Java
Object Oriented Programming
Programming
Swing
raja
Published on 03-Jul-2019 19:46:37
JFrameThe components added to the frame are referred to as its contents, these are managed by the contentPane. To add a component to a JFrame, we must use its contentPane instead.A JFrame contains a window with title, border, (optional) menu bar and user-specified components.A JFrame can be moved, resized, iconified and it is not a subclass ...
Read More
Previous
1
...
66
67
68
69
70
71
72
...
81
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout