Search Results

Showing results 1 to 40 of 56
Search took 0.01 seconds.
Search: Posts Made By: k2k ; Forum: Java and child forums
Forum: Java Jun 12th, 2009
Replies: 5
Views: 354
Posted By k2k
i tried randomAccessFile with bufferedWriter... it gave me byte code to the text... i need to import that text doc to excel for some data process.. so..
Forum: Java Jun 12th, 2009
Replies: 5
Views: 354
Posted By k2k
i need to use java to generate and write/append (long)numbers to a text file and use those data for calculation later. can anyone give me a quick reference on what i should use?

i tried: ...
Forum: Java Apr 22nd, 2009
Replies: 8
Views: 2,776
Posted By k2k
haha, ezzaral... you are just too good every time.. hit right at the point. right, i just figured it out i should have placed my image somewhere other than where i placed it. thanks for reply very...
Forum: Java Apr 22nd, 2009
Replies: 8
Views: 2,776
Posted By k2k
found a similar example and implemented,, pic now showing still.

anything missing ?


import java.text.MessageFormat;
import java.sql.*;
import javax.swing.*;
import javax.swing.ImageIcon;...
Forum: Java Apr 22nd, 2009
Replies: 8
Views: 2,776
Posted By k2k
thanks, however, the drawImage() method has many parameters. would you mind to show how i import just one image to the drawImage()?

i got it so far :

import java.text.MessageFormat;
import...
Forum: Java Apr 22nd, 2009
Replies: 8
Views: 2,776
Posted By k2k
hi, does anyone know how to insert a background picture to a JPanel?
I have googled around, found something seem more difficult than it should be, and a simple one as below but not showing the pic. ...
Forum: Java Apr 16th, 2009
Replies: 14
Views: 682
Posted By k2k
yea, that was a careless mistake but i think i would never find out coz i never knew the awt and swing don't get along.

Ezzaral is really good, he solved at least 3 of my threads in here i think....
Forum: Java Apr 16th, 2009
Replies: 14
Views: 682
Posted By k2k
Ezzaral,
thanks very much. I didn't mean to user Label instead of JLabel, it was just something I did carelessly. and I didn't know it would cause this problem took me that long to figure it out. ...
Forum: Java Apr 15th, 2009
Replies: 14
Views: 682
Posted By k2k
huh, that is what it is though. i have a JMenuBar directly added to the JFrame, and then everything else is added to the JPanel or JScrollPane, then add the JPanel or JScrollPane to the Frame.
Forum: Java Apr 15th, 2009
Replies: 14
Views: 682
Posted By k2k
well, i do have to say thank you for the on going help.

but yea, i tried the setOpaque(false) for my panel and guess this is not the solution.

i'll post my code and see if you may see...
Forum: Java Apr 14th, 2009
Replies: 14
Views: 682
Posted By k2k
i am using eclipse, i don't know if it has the same problem netbeans has. but it is weird that i have a JScrollPane that works perfectly fine along with the JMenu.. the dropped down wouldn't be...
Forum: Java Apr 14th, 2009
Replies: 14
Views: 682
Posted By k2k
hi,
i have a JFrame... one menuBar placed on a JPanel.. and then two JPanel with different things (let me call them ActionPanelOne, and ActionPanelTwo).

i put the JPanel (with JMenuBar)...
Forum: Java Apr 14th, 2009
Replies: 9
Views: 875
Posted By k2k
that is very nice of all of you.

rahul8590, thanks for your example.
Forum: Java Apr 13th, 2009
Replies: 6
Views: 619
Posted By k2k
finally got it work the way supposed to... = )

thanks for all the helps.
Forum: Java Apr 12th, 2009
Replies: 6
Views: 619
Posted By k2k
thanks. maybe i was heading to the wrong direction.

first of all, i have a class extends JFrame (the main class)

import java.text.MessageFormat;
import java.sql.*;
import javax.swing.*;...
Forum: Java Apr 12th, 2009
Replies: 9
Views: 875
Posted By k2k
well in ur java program u will have to write the following

Help with Code Tags
(Toggle Plain Text)

/* <applet code = "filename" height = 300 width = 300 >
</applet code> */...
Forum: Java Apr 12th, 2009
Replies: 6
Views: 619
Posted By k2k
thx for the reply.

// In the actionlistener you overwrite the value of sTable that you set up in the constructor, so it seems pointless to have passed the value into the constructor in the first...
Forum: Java Apr 12th, 2009
Replies: 6
Views: 619
Posted By k2k
I fixed the StackOverFlowError problem from my last thread.. however, my ActionListener is still not working. if any GUI guru here may point out the issue, it would be great. i think this is...
Forum: Java Apr 12th, 2009
Replies: 0
Views: 197
Posted By k2k
hi,
would someone please point out what is wrong with my ActionListener setup?


// in my menu class, parse JScrollPane and JTable to the showTable constructor in the ShowTable Class
...
Forum: Java Apr 10th, 2009
Replies: 9
Views: 875
Posted By k2k
sorry it is kinda unclear that what i was asking. after some googling, i found i might be able to do something like <applet code= xxx.class ... >

does it mean my java program must extend applet in...
Forum: Java Apr 10th, 2009
Replies: 9
Views: 875
Posted By k2k
my last thread was just solved that i can run my java programs in my linux box.

now i would love to know if some one knows how to make a html/xml page that has a link that if i clicked and it...
Forum: Java Apr 10th, 2009
Replies: 2
Views: 772
Posted By k2k
Forum: Java Apr 9th, 2009
Replies: 2
Views: 772
Posted By k2k
hi, i have just written a simple hello world java program in my linux server, installed jdk ... and tried to compile and run it and it gave me some errors.

please details below:
...
Forum: Java Apr 7th, 2009
Replies: 6
Views: 509
Posted By k2k
opps, just found a good one, guess i'll be okay. thanks very much
Forum: Java Apr 7th, 2009
Replies: 6
Views: 509
Posted By k2k
huh, this is my first time trying sql class. thanks for the insight, i at lease know what to look at now.

i tried to google it, and i didn't find any very helpful example. if you may give a quick...
Forum: Java Apr 7th, 2009
Replies: 6
Views: 509
Posted By k2k
no, the codes i showed from last post is all i did. would you please give an example? but in my access file i don't have any empty field in between though.

was the compiler actually complaining...
Forum: Java Apr 7th, 2009
Replies: 6
Views: 509
Posted By k2k
hi,
please assume it is already connected to the access database( it is connected) since i could get all the data out and put them onto a JTable.

What is wrong now ... is that i am trying...
Forum: Java Apr 1st, 2009
Replies: 3
Views: 607
Posted By k2k
Thank you all very very much. Ezzaral, i like your simple sample code. that just explained everything i needed to know. thank you very much
Forum: Java Apr 1st, 2009
Replies: 3
Views: 607
Posted By k2k
Okay, I basically have a menu bar with menuItems.. say just showTableMenuItem --> to display the table .... and addMenuItem() --> to add new record. I want to be able to display the table (when user...
Forum: Java Mar 23rd, 2009
Replies: 3
Views: 484
Posted By k2k
thanks very much for the reply.
Forum: Java Mar 21st, 2009
Replies: 3
Views: 484
Posted By k2k
huh, this main actually got it compiled.


public class Screen
{

public static void main(String[] args) throws SQLException
{

DataHolder dh = new DataHolder();
Forum: Java Mar 21st, 2009
Replies: 3
Views: 484
Posted By k2k
Hi, I am trying write a program to input and output data from a microsoft access file with java.sql class and the swing class.

basically i am on the first stage, trying to figure out different...
Forum: Java Feb 23rd, 2009
Replies: 6
Views: 657
Posted By k2k
opps,, finally, it is the addField() messed it up.. i got it thanks very much
Forum: Java Feb 23rd, 2009
Replies: 6
Views: 657
Posted By k2k
i spent hours couldn't figure it out what was null, sorry maybe i should have posted the whole thing. it isn't that long anyway


import java.awt.*;
import java.awt.event.*;
import java.io.*;...
Forum: Java Feb 23rd, 2009
Replies: 6
Views: 657
Posted By k2k
The TestFields are null until they are assigned the values got from the text. it doesn't look like the problem though.

below is how i assigned the TextField.


public class Reader extends...
Forum: Java Feb 23rd, 2009
Replies: 6
Views: 657
Posted By k2k
hi, i am trying to read the file and parse the info to the text field of the awt gui form thing. i got the info out successfully by testing with the "system.out.pritnln(variable )" .. however, using...
Forum: Java Feb 17th, 2009
Replies: 6
Views: 480
Posted By k2k
thanks stephen,
however, using all nextLine() probably wouldn't be as realistic even though in this case it should work. however, nextLine() read directly the next line down below and that...
Forum: Java Feb 17th, 2009
Replies: 6
Views: 480
Posted By k2k
Stephen,
yes, i was thinking about the similar thing. and after different attempts i figured it out that it was the reader.nextLine() caused the problem.
if i made my text doc...
Forum: Java Feb 17th, 2009
Replies: 6
Views: 480
Posted By k2k
hi, i actually had done similar programs many times and don't know why eclipse gave me strange output this time. anything possibly wrong? thanks


class RobotShop
{
public static void...
Forum: Java Feb 12th, 2009
Replies: 2
Views: 225
Posted By k2k
would anyone explain the difference among "public static int " and "public final int " and "public static final int" ?

thanks
Showing results 1 to 40 of 56

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC