Skip to main content
gamedev.net
🔒 Locked

Fullscreen problem

Started by HenricS 0 replies 550+ views
Original Post
HenricS
HenricS
Hi! I'm currently developing a 2d tile-based game in java. It runs in fullscreen and that works fine, but I want it to be a semi-mud game so about half the screen should be a jlist and below that a jtextfield for input. I added those components by using the setClip() method to only draw half the screen and put them on the other half. Now the problem comes when I want to write something. I wrote a method that uses requestFocus() on the jtextfield when i press enter. As soon as I start writing the game freezes. Can't seem to find what the problem is, i'm fairly new to game development. Am i approaching this the wrong way? /Henric
wicked357
wicked357
A little advice, if you put your code in you get better responses. We can't assume what exactly the problem is without seeing it.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.