Preston Taylor

Greenhorn
+ Follow
since Feb 18, 2010
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 Preston Taylor

I am writing a program that needs to accept input from a bar code scanner, which is really not the issue since most scanners are just a keyboard, but because I can't trust the users to input non-falsified information I need certain text boxes to accept input from the scanner and the scanner only. how do I determine from what device text input is coming from?
13 years ago
Bumpity!

//looked trough the FAQs and tried to find some rules, couldn't...
//hope bumping isn't forbidden.
13 years ago
I have never tried formating as RTF but I have putput formatted HTML text to a file using the properties class and it held all the special characters etc from my text pane. I think that might work for you that way you can use the properties file like "Bill 11:15 PM" = "<HTML>blah blah <p>blah" as far as I know Properties works with any file extension. it just outputs straight text to whatever file you give it. This may not work easily if you just want plain text output (just out put your html tags etc as plain text it's fairly easy) use something like this:

CODE COPIED FROM JAVA2S.COM

keep in mind you can change that file extension to whatever you want. it doesn't have to be txt.


When in doubt google!
btw Java2s.com is a great site for noobs that need examples
13 years ago
I did a little reading and looking up of some API. I read through the very little that http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#sorting this page has to offer and as far as I can understand my highlighting is going by the view row rather than the model row?

so is all I need to do is change a few lines in my highlighting code to convert the coordinates or am I over simplifying?
13 years ago
I have a part of my jtable class that colors certain cells based on their value (see code below) My problem is that when the order of the rows (or columns) are changed the highlite is not refreshed and doesn't fallow it's respective cell



13 years ago
duh! I used the same exact solution elsewhere in the program lol thanks
14 years ago



How do I get to the openTicket Function from my Info class? Class relationships is probably me weak point in java, with all the static non-static stuff.
I already have a way for someone to open a new internal fram from within this MainView Class but I want to be able to open the same internal frame from another class.


thanks for the help
BTW first post!
14 years ago