User Profile

Collapse

Profile Sidebar

Collapse
Koji
Koji
Last Activity: Nov 24 '06, 03:25 PM
Joined: Oct 4 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Koji
    replied to Displaying Japanese characters
    in Java
    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
    See more | Go to post

    Leave a comment:


  • Koji
    replied to Displaying Japanese characters
    in Java
    Yeah. Not only is that rather outdated, but I also don't understand much of it. Heh.
    See more | Go to post

    Leave a comment:


  • Koji
    started a topic Displaying Japanese characters
    in Java

    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
    See more | Go to post

  • Koji
    started a topic Japanese characters in Java
    in Java

    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
    See more | Go to post

  • Koji
    replied to Reading a txt file and replacing words in <>
    in Java
    That's not the assignment. Haha.
    See more | Go to post

    Leave a comment:


  • Koji
    started a topic Reading a txt file and replacing words in <>
    in Java

    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...
    See more | Go to post

  • 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.
    See more | Go to post

    Leave a comment:


  • Using 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...
    See more | Go to post

  • Koji
    replied to Java GUI, take input from JText class
    in Java
    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.
    See more | Go to post

    Leave a comment:


  • Koji
    replied to Java GUI, take input from JText class
    in Java
    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.
    See more | Go to post

    Leave a comment:


  • Koji
    started a topic Java GUI, take input from JText class
    in Java

    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...
    See more | Go to post
No activity results to display
Show More
Working...