Ok, just so anyone else knows who ever finds this, you display Japanese characters using unicode by using the unicode number as a String like so:
String a = "\u304F"
That's く or "ku"
I'm glad that anyone who reads this will now know what I had to look around for a week to find out. :D
User Profile
Collapse
-
Yeah. Not only is that rather outdated, but I also don't understand much of it. Heh.Leave a comment:
-
Displaying Japanese characters
I'm attempting to write a program that quizzes the user on hiragana and katakana. Unfortunately, I can't figure out how to write the code so System.out.prin tln or JOptionPane.sho wMessageDialog will actually display the characters. I thought it might use Unicode, but if it does, I attempted it incorrectly.
Any assistance would be helpful! Thanks!
Koji -
Japanese characters in Java
I'm attempting to write a program that quizzes the user on hiragana and katakana. Unfortunately, I can't figure out how to write the code so System.out.prin tln or JOptionPane.sho wMessageDialog will actually display the characters. I thought it might use Unicode, but if it does, I attempted it incorrectly.
Any assistance would be helpful! Thanks!
Koji -
-
Reading a txt file and replacing words in <>
I know that I should use a Buffered Reader to read a txt file, but I then have to write code that replaces identifiers in the txt file, shown by <example>, with input from the user for each identifier. I've been told that Buffered Reader has something that will scan for individual characters, but even if I found that, I wouldn't know how to make it stop at the >, then replace the identifier with user input.
Sorry if this seems... -
Thanks, but I already figured out how to do the filters and Filechooser by the time I checked your post. That page for which you posted the URL was the page that was essential in figuring that out.
I never figured out how to save the file chosen and convert it to grayscale to create another icon of the grayscale, but I found a way to put a gray filter over the icon, which I'm hoping won't count off too much. Heh.Leave a comment:
-
Koji started a topic Using JFileChooser to select only jpg, bmp, and gif files, then create ImageIconin JavaUsing JFileChooser to select only jpg, bmp, and gif files, then create ImageIcon
Basically, I have a GUI class where you have to use the JFileChooser class to select a jpg, bmp, or gif file. Then, that file is displayed on a jLabel as an Icon. The next step is taking that file chosen, turning it to grey scale, then displaying that as an Icon on another jLabel so that the user can see both of them at once.
I'm pretty sure I can do the turning to grey scale. My FileChooser is working in that I can choose a file from... -
Thanks for replying though! Oh, and my homework requires that we display the answers in the TextField for the missing information, not in a JLabel. :D
Thanks for your delayed help, hehe.Leave a comment:
-
Omg. I feel so stupid....
.getText() and .setText().... I couldn't find them in the API because they were inherited methods. Omg... Sorry guys, scratch that question. Hahaha.Leave a comment:
-
Java GUI, take input from JText class
Ok. So, I don't know which class from javax.swing to use for this. I think it's JTextField, but anyway...
I'm looking for a class that allows the user to type in, in this case, integer or double values, which I'll be able to take as a string, change to type I need, then perform operations with them.
Example: 3 text fields. Miles, Gallons, and MPG. If the user puts in info for Miles, and Gallons, I should be able to take...
No activity results to display
Show More
Leave a comment: