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?
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
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
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.