GT's Blog
Code snippets, technical articles, tips on computing and programming...
Pages
(Move to ...)
Type in Nepali Unicode Romanized - Convert Roman Nepali to Unicode Tool
▼
maximize a JFrame window in java
›
How to Maximize a JFrame : JFrame myFrame = new JFrame(); myFrame.setVisible(true); myFrame.setExtendedState(myFrame.getExte...
1 comment:
The usage of Java packages.
›
Explain the usage of Java packages. A. This is a way to organize files when a project consists of multiple modules. It also helps resol...
Java: difference between private, protected, and public?
›
These keywords are for allowing privileges to components such as java methods and variables. Public : accessible to all classes Private : ...
java show window JFrame JDialog always on top
›
We have to use this feature of java.awt.Window : Window.alwaysOnTop(boolean); Example code : import javax.swing.JFrame; import javax.swi...
Order of catching exception in java
›
Does it matter in what order catch statements for FileNotFoundException and IOExceptipon are written? A. Yes, it does. The FileNotFoundEx...
wrapper classes in Java
›
Describe the wrapper classes in Java. Wrapper class is wrapper around a primitive data type. An instance of a wrapper class contains, or wra...
Java Class as Applet as well as Application
›
Can you write a Java class that could be used both as an applet as well as an application? A. Yes. Add a main() method to the applet.
Bring JFrame JDialog Window to front java swing
›
To bring JFrame or JDialog ... or Window (JFrame and JDialog inherits Window) to front in JAVA, fun the code below : java.awt.EventQueue...
Redirect Standard System Output and Error Message to PrintStream in Java
›
In a Java program, how can you divert standard system output or error messages, say to a file? ->We can achieve this by using public st...
concatenate arrays of any type - java
›
Combining two arrays of any type public static T[] concat(T[] first, T[] second) { T[] result = Arrays.copyOf(first, first.length + se...
‹
›
Home
View web version