D Mahapatra

Greenhorn
+ Follow
since May 16, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by D Mahapatra

Originally posted by Ibrahim Hashimi:
Hi, did you initalize c? If you didnt then you might want to try:
c = getContentPane();


Hi!, Thanks for the response. Of course, I had initiallized Container c. The code works fine without including this tabbed pane. So that's why I am puzzled. And of course, i know a round about way to do this. But I am basically interested to know the basic fault in this code. Bye.
Debasis
22 years ago
Sir,
I have a problem with Swings-JTabbedPane. When I want to add a ButtonGroup component (which has two JRadioButtons added to it) to a JPanel with add() i.e, jp.add(bg), it shows error. So ultimately I can not add the JPanel to the JTabbedPane. But when I add the JRadioButtons directly to the JPanel and in turn, JPanel to JTabbedPane then there is no compilation error but there is runtime error stating NullPointerException on the line marked with '?' mark.
b1=new JRadioButton("Married");
b2=new JRadioButton("Unmarried");
bg=new ButtonGroup();
bg.add(b1);
bg.add(b2);
jp=new JPanel();
jp.add(b1,b2);
c.add(jp);
jtp.addTab("MS",ii,jp,"Marital Status"); ???
jtp.setSize(250,250);
jf.getContentPane().add(jtp);
Please, help.
22 years ago
Sir,
I am having a table in ORACLE which has only one row and seven columns. When I try to read them through ResultSet, i.e., through rs.next(), I can't able to read them, because rs.next() is false.
How can I read the data? Please, help.
Thanks