Khoa Nguyen

Greenhorn
+ Follow
since Aug 08, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Khoa Nguyen

Ok, so here is a working example. when I type in "cat, dog, cow" and press printer, I see that nothing has happened in the print preview. There should be 3 pages with cat dog and cow on them. I'm not sure what's going on?

13 years ago
Basically I need to make a program that will print out the animal letters that the user enters into a textbox. I don't know how many letters will be entered so I need to get it after the button has been pressed to define the animals[]. But this doesn't work, the print dialog box opens and nothing appears. Yet if I specify that animals was String[] animals = new String[5] at the beginning, I will get 5 pages in the print preview. How can I get this to show without specifying it ahead of time? thanks for any help, I've been stuck on this for days.

13 years ago
Ok, I'm clueless on how this works right now, I don't know where to begin reading up or what this stuff is call so I can search the area. I'm a novice level programer. Basically, I'm trying to open a webpage that is normally only accessible after you login. From there is want to read the html of that page so that I can find work with for the rest of my program. However I have no idea what to do. I have tried so url connection and readings, but they can't access the password protected page. Please help me point me in the right places, so I can start learning about how to approach this problem. Thanks
I have a jtextpane I have alreadly colored in black, and red. Red is for the text inside the brackets. This seems to work, but the problem is when I insert text imediately next to a red bracket, the next text that comes out is red as well, while it should be black. Right now what I'm doing to fix the problem is coloring everything black first then color in the red, but that makes the jtextpane blinks between two colors. I was wondering if there is some simpler way to prevent the style from being "contagious".

thanks in advance.
17 years ago