This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.

Raj

Greenhorn
+ Follow
since Apr 08, 2007
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 Raj

Well is there another way to do it ....
9 years ago
hi,

I need to create a Frame and a Panel inside it Which has Green Colour in it


well this is wht i have writen



Now How do i fill in the colour in the panel
9 years ago
okey i got wht i needed but there is a small catch.
the input needs to be only

clear <row> <col>

but as i am using Scanner it accepts

clear
<row>
<col>

also which is not required

code:

there are only 3 inputs whish are taken

clear <row> <col>
or
black <row> <col>
or
white <row> <col>
or
quit

should i use tokenizer please advise......
9 years ago
input2= myScanner.next();
temp_R = myScanner.next();
input_C = myScanner.nextInt();
input_R=temp_R.charAt(0);
Go_obj.Check(input2,input_R,input_C);

so is this rite ???
9 years ago
Hi guys,

i hav a bit of a problem well i am taking rows and colmn of a matrix as input in which rows are char and coloms are int.
Display shows this
1 2 3 4 5 6 7 8 910
a . . . . . . . . .
b . . . . . . . . .
c . . . . . . . . .
d . . . . . . . . .
e . . . . . . . . .
f . . . . . . . . .
g . . . . . . . . .

hence the user needs to input "a 1" then the prog searches for tht position I am using i,j of type int to traverse through the array
hence need to convert the a into 1 b->2 c->3 d->4 e->5;

i am taking the input using Scanner class.



well i am sorry if this Q has allready been answered, i tried finding it in the threads sooo.... i need to submit this by tommorow .
9 years ago
i did make a text area but how do i pass the contents of data[] on to the text area.
11 years ago
well i have a database in ms access and i am storing the entries of the database in an array data now i have to print the conents of this araay on the frame of an applet. how do i do that?

11 years ago
how do i do that
11 years ago
we use system.out.println to print on the screen what stmt do we use if we want to print a value of an variable on an applet
11 years ago
the point is that data[] is not takin any values in it [showin null]. colcount variable is accepting the no of coloumns in datbase (i changed the no of coloumns in d data base and the there was a change in colocount variable too ) hence the program is reading my database only problem is the values inside the table are not retrived.
ie data is returning null.

is there any other method than getstring() which i can use to read data fom my database.
11 years ago
wait wait its not showing null the output is
sun.jdbc.odbc.JdbcOdbcStatement@1a0c10f
when i just call connecttodatabase()

and this is a modified retrive data which is printing d values of data[i]
on the console




and this is the output
refresh pressed
null
null
null
java.lang.ArrayIndexOutOfBoundsException: 4


please help
11 years ago
wait wait its not showing null the output is
sun.jdbc.odbc.JdbcOdbcStatement@1a0c10f
when i just call connecttodatabase()

and this is a modified retrive data which is printing d values of data[i]
on the console




and this is the output
refresh pressed
null
null
null
java.lang.ArrayIndexOutOfBoundsException: 4


please help
11 years ago
well i did try system.out.println and it is showing null :roll: soooo is it not connecting to my database?
what should i do
11 years ago
11 years ago
//con database var
Statement st;
Connection con;

these are the two variables i have used
11 years ago