Stephen Bourget

Greenhorn
+ Follow
since Aug 13, 2012
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 Stephen Bourget

@darryl
I'm learning java right now, and I'm pretty familiar with all of the built in components. I thought it would be fun to make my own from scratch. I'm just using a JFrame and a JPanel, and the graphics component for the JPanel.
11 years ago
I read up a little and it seems any american keyboard will have a question mark as the secondary character for the forward slash, so ill just have to stick with that bandaid for now. It just seems odd that the getKeyChar will return '?' for keys like shift, ctrl, etc.
11 years ago
Java wont recognize when I press the 'TAB' key. It recognizes every other key correctly, but when i hit 'TAB' it doesn't even trigger the keyPressed() method. I tried running it through eclipse and through the command prompt.

Is this a common problem? I couldn't find anything on it anywhere else.
And is there a way I can make Java recognize it?

Thanks,
Stephen.
11 years ago
I'm trying to make my own text editor in Java, but I've run into a problem when I try to type a question mark into my program.
With KeyEvent e,
e.getKeyChar() will return '?' when the question mark key is pressed, but also when a key such as shift or control is pressed.
Is it safe to assume that '?' is always the secondary character for a forward slash?
Am I missing something or doing something wrong?

Thanks.

11 years ago