Search:
Type: Posts; User: kaaj
Search :
Search took 0.02 seconds.
September 19th, 2005 05:59 AM
Hi,
Why dont you try having two combo boxes.
1. Initially populate all values in first combo.
2. As per the value selected in this combo, populate the items in the second combo.
Will...
September 12th, 2005 10:58 PM
Hi,
An Object's implementation of Clone method checks to see whether the object on which clone was invoked implements the Cloneable interface.
If the object does not, the method throws a...
September 12th, 2005 06:21 AM
Hi,
Go to this link
http://java.boot.by/scjp-tiger/
Also visit JavaRanch for other exam-writer's experiences.
I'm also in the way to SCJP 5.0
Happy learning...
August 2nd, 2005 04:36 AM
I solved the reading/writing part to the xml.
But is there a way to make the xml file - well formatted.
August 2nd, 2005 03:31 AM
Hi,
This is very urgent. I've designed a feedback Bean.
import java.io.Serializable ;
public class FeedbackBean implements Serializable{
private String assetName;
private String...
Hi,
U can set a color to graphics object as below:
g2obj.setColor(Color.blue);
You can also create your own color objects:
Hi,
The following link will clearly explain ur doubtful concepts with samples
http://www.janeg.ca/scjp/overload/overloadingMethods.html
Hi,
Learn more abt this from the following link :
http://www.javaolympus.com/J2SE/Database/JDBC/JDBCXML.jsp
Hi,
Go to this link for a clear snapshot on permissions granted to an applet.
http://java.sun.com/docs/books/tutorial/security1.2/tour1/step1.html
Hi,
Hav a good idea in using various layout managers in java.
They might help u in different screen sizes.
Check this link...
The following class generates random numbers within specified limits
public class RandomNumberBounds {
private static void generateRandomNumber() {
int rawNumber;
...
Hey,
I'll come to ur doubt later.
I've a doubt in the last part of ur code.
The color returned by the ColorChooser is in variable 'newColor'.
But while setting the background color, u hav...
The problem is with the String variable table.
U haven't used escape sequences for double quotes.
So the string variable might be truncated.
This is just a guess.
Try doing this.
First try to understand the usage of Classpath variable.
It specifies the compiler about the location of the class files which are either directly or indirectly involved in the current program...
Hi,
Instead of using VSS, try out CVS - Concurrent Version System.
Chk this link
http://www.jcvs.org/
Happy versioning!!!!
hi,
Follow this link.. U'll get a clear idea..
http://java.sun.com/docs/books/tutorial/2d/printing/pagesetup.html
Hi,
your Objective is to bring out a color Palette when u click on a menu item, right!!!
This can be done in two steps :
1. Add Actionlistenerto the required MenuItem.
2.In the...
Hi,
Kindly refer the JTable samples that comes along with JDK.
It contains a simple example of retrieving data from a database and displaying in the JTable depending upon the datatype.
...
Of course, u should use the java Native Interface.
Use the following link :
http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/index.html
You can edit the table cells in the following way :-
// Create table
int rows = 10;
int cols = 5;
JTable table = new JTable(rows, cols);
// Enable the ability to...
Try setting the visible property to false and then dispose the frame.
Ex :
frame.setVisible(false);
frame.dispose();
1. The shortcut to do the above is use the '.'
set classpath=%classpath%;.;c:\junit3.7\junit.jar;
where . represents the current working dir
which may avoid confusion when the folder name...
Try out this piece of coding :
import javax.swing.*;
import javax.swing.table.*;
import java.awt.print.*;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import...
hi,
Dont worry! that is one of my favourite links!!!
Here it is
http://vlibrary.h10.ru/java/JDCBook/advprint.html
Happy learning
U can use the JDialog constructor as shown below :-
JDialog(owner, title, isModal)
Ex:
JDialog dialog = new JDialog(null, "A Modal Dialog", true)
If u specify 'true' for the third...
Click Here to Expand Forum to Full Width