• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:42
CEST 13:42
KST 20:42
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL19] Finals Recap: Standing Tall8HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL41Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
RELIABLE USDT RECOVERY SERVICE//TECHY FORCE CYBER The SCII GOAT: A statistical Evaluation Statistics for vetoed/disliked maps Esports World Cup 2025 - Final Player Roster How does the number of casters affect your enjoyment of esports?
Tourneys
RSL: Revival, a new crowdfunded tournament series [GSL 2025] Code S: Season 2 - Semi Finals & Finals $5,100+ SEL Season 2 Championship (SC: Evo) FEL Cracov 2025 (July 27) - $8000 live event HomeStory Cup 27 (June 27-29)
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
BW General Discussion [ASL19] Finals Recap: Standing Tall BGH Auto Balance -> http://bghmmr.eu/ Help: rep cant save Player “Jedi” cheat on CSL
Tourneys
[Megathread] Daily Proleagues [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET The Casual Games of the Week Thread [BSL20] ProLeague LB Final - Saturday 20:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine US Politics Mega-thread Trading/Investing Thread The Games Industry And ATVI
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread NBA General Discussion Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
Game Sound vs. Music: The Im…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 661 users

The Big Programming Thread - Page 41

Forum Index > General Forum
Post a Reply
Prev 1 39 40 41 42 43 1031 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
wO-ZiGouNeT
Profile Joined January 2011
United Kingdom21 Posts
Last Edited: 2011-03-16 14:12:10
March 16 2011 13:46 GMT
#801
Could you be clearer? What are you trying to do exactly? Parse some data from that xls spreadsheet and put it in a db? If you don't know sql and performance isnt a major factor, you could have a look at linqtosql http://msdn.microsoft.com/en-us/library/bb425822.aspx.

You also need to chose a DBMS, that really depends on the requirements of your app (how many users, that kind of stuff), I'd have a look at mysql or postgresql if you're not doing any kind of professional app .
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
Last Edited: 2011-03-16 14:15:00
March 16 2011 14:14 GMT
#802
You really need to get clearer requirements. You always need to write down:
1. What do i have
2. What do i know
3. What do i want

Trying to parse your post:

You have:
1. You have an XLS file with 2 spreadsheets, one containing item names, the other containing descriptions, both connected by an ID

You know:
1. Every item has exactly one description
2. Multiple users will access the application at the same time, so a database is required

You want:
1. You want an ASP.NET frontend where users can enter an item name and they get the description
2. You want to retrieve the description from a Database

The first step would be to read the data into a database. AFAIK the MS SQL Server provides a wizard for that, though you should automate that step in case you get newer XLS files that replace the old file.

The second step would be writing a class to retrieve the Data from the Database. This highly depends on the data layout, though you can use Visual Studio Professional (not Express afaik) to connect to the database and create accessors for it. You then just need to write a Linq2SQL query to retrieve the data.

In the last step you create a nice form with a submit button and then just display the result. This is quite easy in ASP.NET (though i still hate ASP.NET more than even Java or PHP).
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
March 16 2011 14:15 GMT
#803
I'm trying to make a web service. More specifically, an "Open API." It takes SOAP messages as queries and returns SOAP messages as output.

Using Eclipse EE (with Tomcat 6 and Axis2) I can automagically do this; make a Java bean, right-click, new -> web service, and it's done. However, the namespace defaults to apache.org/axis2. I want to be able to change the namespace and label each field that's returned. Can someone tell me how to do this? The tutorials I find online don't seem to cover it, and I haven't found any manuals that tell me now to do it.
Compilers are like boyfriends, you miss a period and they go crazy on you.
Jaeger
Profile Joined December 2009
United States1150 Posts
March 16 2011 14:33 GMT
#804
On July 09 2010 03:24 mmp wrote:
+1, Nehe's site is very good for getting started with OpenGL but his source is very amateur (he admits this) and shouldn't be copy-pasted verbatim. http://www.opengl.org/code/ and http://www.opengl.org/sdk/docs/man/ are good places to visit once you have a feel for the API.


A great site to help you go beyond the basics with graphics programming is: http://www.humus.name/

Been visiting this site since 2003 (which is when I started graphics programming).
https://www.dotabuff.com/players/8137911
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
March 18 2011 01:22 GMT
#805
Okay, because everyone expressed so much interest in my problem, I'll post a solution now that I've found it:

Instead of creating a java class, and generating a webservice from that, we make a WSDL file first. We can easily define the namespace in the WSDL file (it's simply an XML document). Even better, Eclipse EE comes with a WSDL editor in which you can use a GUI instead of mucking around with code and getting syntax errors. I followed this tutorial for this.

Then, you right-click on the wsdl file, new -> Web Service, and you've got a bunch of java code generated for you. Fill in the Skeleton file with the appropriate logic and you're really, truly done! Until the customer wants you to change stuff... then I guess it's back to the beginning...
Compilers are like boyfriends, you miss a period and they go crazy on you.
NoDice
Profile Joined January 2011
Canada33 Posts
Last Edited: 2011-03-18 14:00:21
March 18 2011 13:59 GMT
#806
Am I allowed to selflessly promote youtube channels here? I have a channel on C++ help if any of you want to have a look. It's mostly basic stuff thus far.

http://www.youtube.com/mrcpphelp
astroorion
Profile Blog Joined September 2010
United States1022 Posts
March 19 2011 09:07 GMT
#807
Can someone help me here, http://bored.comli.com/register.php it was working earlier, and now it says it can't connect to my database
MLG Admin | Astro.631 NA
Icx
Profile Blog Joined November 2009
Belgium853 Posts
March 19 2011 10:38 GMT
#808
On March 19 2011 18:07 astroorion wrote:
Can someone help me here, http://bored.comli.com/register.php it was working earlier, and now it says it can't connect to my database


I'm getting this:

You are seeing this page because the system administrator of 000webhost.com is currently checking this website for malicious content. This redirect page will be removed once we finish manually checking all files on this account. Since we check over 100 websites per day, it can take about 2-4 hours to complete. If you are the owner of this website, you will get an email confirmation once it's done. If you are a visitor, please come back later.

So you might want to contact your webhost to see what that is all about.
Seldon
Profile Joined March 2011
90 Posts
Last Edited: 2011-03-19 11:06:40
March 19 2011 11:04 GMT
#809
On March 18 2011 22:59 NoDice wrote:
Am I allowed to selflessly promote youtube channels here? I have a channel on C++ help if any of you want to have a look. It's mostly basic stuff thus far.

http://www.youtube.com/mrcpphelp


Just saw lesson 13 (was amused by the notion of youtube programming tutorials) and it seems your understanding of structs is wrong. You *can* have methods and constructors in structs too, try it. C++ structs aren't C structs. C++ structs are classes with default public access and inheritance. Not that it matters, though, as noobies don't really need to know that. So well done overall, I'll show these to friends that want to learn programming.
astroorion
Profile Blog Joined September 2010
United States1022 Posts
March 19 2011 14:03 GMT
#810
On March 19 2011 19:38 Icx wrote:
Show nested quote +
On March 19 2011 18:07 astroorion wrote:
Can someone help me here, http://bored.comli.com/register.php it was working earlier, and now it says it can't connect to my database


I'm getting this:

You are seeing this page because the system administrator of 000webhost.com is currently checking this website for malicious content. This redirect page will be removed once we finish manually checking all files on this account. Since we check over 100 websites per day, it can take about 2-4 hours to complete. If you are the owner of this website, you will get an email confirmation once it's done. If you are a visitor, please come back later.

So you might want to contact your webhost to see what that is all about.


No, look at it now, it's a PHP error, the review I was aware of, I need help fixing the error
MLG Admin | Astro.631 NA
tofucake
Profile Blog Joined October 2009
Hyrule19029 Posts
March 19 2011 14:51 GMT
#811
Parse error: syntax error, unexpected T_ELSE in /home/a5271456/public_html/register.php on line 27

Is what I see at the moment. This means either a missing semi colon or curly brace.
Liquipediaasante sana squash banana
astroorion
Profile Blog Joined September 2010
United States1022 Posts
March 19 2011 15:31 GMT
#812
It's all fixed now, thanks for the help, I had my $connect in the wrong place
MLG Admin | Astro.631 NA
Clearout
Profile Blog Joined April 2010
Norway1060 Posts
Last Edited: 2011-03-21 11:30:35
March 21 2011 11:28 GMT
#813
Hi there I'm sorry if this breaks the topics rules, but I'm completely at a loss as to why this class won't behave

I'm making a fighting game in Java for a project and trying to get a picture to move and be repainted across the panel reacting to the keyboard (keyEvents). I'm trying to accomplish this by having a switch in the keyPressed method, while adding the keyListener to the panel. I have been following an example in my Java book and the code I've written as nearly the same yet it just won't work. Hoping some of you will find it in your heart to help

+ Show Spoiler [Code] +

//leaving out the imports to make this smaller.

public class MovePanel extends JPanel implements KeyListener {
private ImageIcon currentImage, facingLeft, facingRight;
private int position;
private final int MOVEMENT;
private GameFrame gameFrame;
private URL lefturl, righturl;

public MovePanel(GameFrame gameFrame) {
// Taking in a gameFrame to be able to swap the active panel (not really relevant).
this.gameFrame = gameFrame;

// Adding the key listener here.
addKeyListener(this);

// These are just the Images I'm using to test. Trying to get it to swap from one to the other.
lefturl = getClass().getResource("/Images/facingLeft.jpg");
righturl = getClass().getResource("/Images/facingRight.jpg");

facingLeft = new ImageIcon(lefturl);
facingRight = new ImageIcon(righturl);

currentImage = facingLeft;
position = 50;
MOVEMENT = 30;

setBackground(Color.red);
setPreferredSize(new Dimension(600,300));

// Calling this method so that the panel will react to keyboard without having to be clicked.
setFocusable(true);
}

// This is just the paintComponent method which works fine to paint the image
// when starting the game.
public void paintComponent(Graphics page) {
super.paintComponent(page);
currentImage.paintIcon(this, page, position, 170);
}

// This is where I suspect my problems may be laying.
// No matter what I try to do inside the keyPressed method it doesnt seem to react at all.
public void keyPressed(KeyEvent e) {

// This switch is to make the method react accordingly to the keys pressed.
switch (e.getKeyCode()) {
case KeyEvent.VK_LEFT:

// Here I'm changing the "active" image and the position by changing the position
// variable which is used to determine the x placement of the image.
// This case is suppused to react if the left arrow key is pressed.
currentImage = facingLeft;
position -= MOVEMENT;
break;
case KeyEvent.VK_RIGHT:
currentImage = facingRight;
position += MOVEMENT;
//player.setRect(position, 0, 20, 40);
break;

// This case is to exit to the menu when escape is pressed.
case KeyEvent.VK_ESCAPE:
gameFrame.setMenuPanelActive();
break;
}
// After reacting to any of the proper keys pressed I'm trying to repaint which will use the
// paintComponent method to paint the image in its new position.
repaint();
}
// I have empty definitions for the other implemented methods but won't be posting them.
}


Oh god this is a large piece of code to be posting
I know I'm asking too much..

What I'm really wondering is why it doesnt seem to react to keyEvents at all. The program compiles fine and all, yet nothing happens. I have no idea what is going wrong.
My suspicions are that I haven't added something essential in the constructor, or that I've made some stupid error with the keyPressed method. (I've tried changing from a switch to if sentences so thats not it)

Thank you so much to anyone bothering to help a noob like me, sorry if this is asking too much and just rude T_T
really?
gravity
Profile Joined March 2004
Australia1847 Posts
March 21 2011 11:48 GMT
#814
On March 21 2011 20:28 Clearout wrote:
Hi there I'm sorry if this breaks the topics rules, but I'm completely at a loss as to why this class won't behave

I'm making a fighting game in Java for a project and trying to get a picture to move and be repainted across the panel reacting to the keyboard (keyEvents). I'm trying to accomplish this by having a switch in the keyPressed method, while adding the keyListener to the panel. I have been following an example in my Java book and the code I've written as nearly the same yet it just won't work. Hoping some of you will find it in your heart to help

+ Show Spoiler [Code] +

//leaving out the imports to make this smaller.

public class MovePanel extends JPanel implements KeyListener {
private ImageIcon currentImage, facingLeft, facingRight;
private int position;
private final int MOVEMENT;
private GameFrame gameFrame;
private URL lefturl, righturl;

public MovePanel(GameFrame gameFrame) {
// Taking in a gameFrame to be able to swap the active panel (not really relevant).
this.gameFrame = gameFrame;

// Adding the key listener here.
addKeyListener(this);

// These are just the Images I'm using to test. Trying to get it to swap from one to the other.
lefturl = getClass().getResource("/Images/facingLeft.jpg");
righturl = getClass().getResource("/Images/facingRight.jpg");

facingLeft = new ImageIcon(lefturl);
facingRight = new ImageIcon(righturl);

currentImage = facingLeft;
position = 50;
MOVEMENT = 30;

setBackground(Color.red);
setPreferredSize(new Dimension(600,300));

// Calling this method so that the panel will react to keyboard without having to be clicked.
setFocusable(true);
}

// This is just the paintComponent method which works fine to paint the image
// when starting the game.
public void paintComponent(Graphics page) {
super.paintComponent(page);
currentImage.paintIcon(this, page, position, 170);
}

// This is where I suspect my problems may be laying.
// No matter what I try to do inside the keyPressed method it doesnt seem to react at all.
public void keyPressed(KeyEvent e) {

// This switch is to make the method react accordingly to the keys pressed.
switch (e.getKeyCode()) {
case KeyEvent.VK_LEFT:

// Here I'm changing the "active" image and the position by changing the position
// variable which is used to determine the x placement of the image.
// This case is suppused to react if the left arrow key is pressed.
currentImage = facingLeft;
position -= MOVEMENT;
break;
case KeyEvent.VK_RIGHT:
currentImage = facingRight;
position += MOVEMENT;
//player.setRect(position, 0, 20, 40);
break;

// This case is to exit to the menu when escape is pressed.
case KeyEvent.VK_ESCAPE:
gameFrame.setMenuPanelActive();
break;
}
// After reacting to any of the proper keys pressed I'm trying to repaint which will use the
// paintComponent method to paint the image in its new position.
repaint();
}
// I have empty definitions for the other implemented methods but won't be posting them.
}


Oh god this is a large piece of code to be posting
I know I'm asking too much..

What I'm really wondering is why it doesnt seem to react to keyEvents at all. The program compiles fine and all, yet nothing happens. I have no idea what is going wrong.
My suspicions are that I haven't added something essential in the constructor, or that I've made some stupid error with the keyPressed method. (I've tried changing from a switch to if sentences so thats not it)

Thank you so much to anyone bothering to help a noob like me, sorry if this is asking too much and just rude T_T

Put try popping up a window or printing to console or something at the beginning of the keypressed method so you can see if it's being called at all.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
March 21 2011 11:56 GMT
#815
On March 21 2011 20:48 gravity wrote:
Show nested quote +
On March 21 2011 20:28 Clearout wrote:
Hi there I'm sorry if this breaks the topics rules, but I'm completely at a loss as to why this class won't behave

I'm making a fighting game in Java for a project and trying to get a picture to move and be repainted across the panel reacting to the keyboard (keyEvents). I'm trying to accomplish this by having a switch in the keyPressed method, while adding the keyListener to the panel. I have been following an example in my Java book and the code I've written as nearly the same yet it just won't work. Hoping some of you will find it in your heart to help

+ Show Spoiler [Code] +

//leaving out the imports to make this smaller.

public class MovePanel extends JPanel implements KeyListener {
private ImageIcon currentImage, facingLeft, facingRight;
private int position;
private final int MOVEMENT;
private GameFrame gameFrame;
private URL lefturl, righturl;

public MovePanel(GameFrame gameFrame) {
// Taking in a gameFrame to be able to swap the active panel (not really relevant).
this.gameFrame = gameFrame;

// Adding the key listener here.
addKeyListener(this);

// These are just the Images I'm using to test. Trying to get it to swap from one to the other.
lefturl = getClass().getResource("/Images/facingLeft.jpg");
righturl = getClass().getResource("/Images/facingRight.jpg");

facingLeft = new ImageIcon(lefturl);
facingRight = new ImageIcon(righturl);

currentImage = facingLeft;
position = 50;
MOVEMENT = 30;

setBackground(Color.red);
setPreferredSize(new Dimension(600,300));

// Calling this method so that the panel will react to keyboard without having to be clicked.
setFocusable(true);
}

// This is just the paintComponent method which works fine to paint the image
// when starting the game.
public void paintComponent(Graphics page) {
super.paintComponent(page);
currentImage.paintIcon(this, page, position, 170);
}

// This is where I suspect my problems may be laying.
// No matter what I try to do inside the keyPressed method it doesnt seem to react at all.
public void keyPressed(KeyEvent e) {

// This switch is to make the method react accordingly to the keys pressed.
switch (e.getKeyCode()) {
case KeyEvent.VK_LEFT:

// Here I'm changing the "active" image and the position by changing the position
// variable which is used to determine the x placement of the image.
// This case is suppused to react if the left arrow key is pressed.
currentImage = facingLeft;
position -= MOVEMENT;
break;
case KeyEvent.VK_RIGHT:
currentImage = facingRight;
position += MOVEMENT;
//player.setRect(position, 0, 20, 40);
break;

// This case is to exit to the menu when escape is pressed.
case KeyEvent.VK_ESCAPE:
gameFrame.setMenuPanelActive();
break;
}
// After reacting to any of the proper keys pressed I'm trying to repaint which will use the
// paintComponent method to paint the image in its new position.
repaint();
}
// I have empty definitions for the other implemented methods but won't be posting them.
}


Oh god this is a large piece of code to be posting
I know I'm asking too much..

What I'm really wondering is why it doesnt seem to react to keyEvents at all. The program compiles fine and all, yet nothing happens. I have no idea what is going wrong.
My suspicions are that I haven't added something essential in the constructor, or that I've made some stupid error with the keyPressed method. (I've tried changing from a switch to if sentences so thats not it)

Thank you so much to anyone bothering to help a noob like me, sorry if this is asking too much and just rude T_T

Put try popping up a window or printing to console or something at the beginning of the keypressed method so you can see if it's being called at all.


Thats the PHP way of debugging...
Java supports breakpoints and you should use them.
Simply set a breakpoint in eclipse or whatever you use and run the program in debug mode and check if the breakpoint ever gets hit. If it does, check the value of the variables and adjust the code.

Sadly my Java experience is rusty, but my guess would be that the keypressed event gets triggered for a child (or parent) control, not the panel itself.
Manit0u
Profile Blog Joined August 2004
Poland17243 Posts
Last Edited: 2011-03-21 12:43:52
March 21 2011 12:42 GMT
#816
Hey guys, I'm in need for some training to become at least amateurish in Java for the purposes of web development and Python in general (to create/run scripts for statistical analysis).

Could you point me to some good online resources?
Time is precious. Waste it wisely.
Clearout
Profile Blog Joined April 2010
Norway1060 Posts
Last Edited: 2011-03-21 13:11:50
March 21 2011 13:07 GMT
#817
Even my professor couldn't see why it wont work.

It doesn't reach the breakpoint in the keyPressed() method, nor will it it do a println() if I put it in there. So the keyPressed() method doesnt react at all.

Morfildur:
As it is now it is supposed to be added to the panel since I have nothing infront of the addKeyListener() method called in the constructor, even if I put this.addKeyListener() to make it explicitly add to the panel it doesn't make a difference when running it. I have also tested and made sure that the panel is focusable so I'm sure it has the keyboard focus. These things make me fairly sure that the problem has to lie somewhere else. But if you have any way of checking what you're saying please tell

Thanks for responding, TL is my last hope
really?
shinarit
Profile Joined May 2010
Hungary900 Posts
March 21 2011 13:12 GMT
#818
My question is, why this expression is not independent from implementation?

int x = 10;
x = x++;

This will either give you 10 or 11. Which i dont get why, it should be 10 clearly every time, as = has lower precedence than ++ (any form of it). So you increase x, than assign the old value to it, no way it can be 11. And yet, on some compilers it will be 11. Whats the reason behind this? Btw i tried it with C++ compilers.
T for BoxeR, Z for IdrA, P because i have no self-respect
Clearout
Profile Blog Joined April 2010
Norway1060 Posts
March 21 2011 13:16 GMT
#819
On March 21 2011 22:12 shinarit wrote:
My question is, why this expression is not independent from implementation?

int x = 10;
x = x++;

This will either give you 10 or 11. Which i dont get why, it should be 10 clearly every time, as = has lower precedence than ++ (any form of it). So you increase x, than assign the old value to it, no way it can be 11. And yet, on some compilers it will be 11. Whats the reason behind this? Btw i tried it with C++ compilers.
In the way you put it in the example you are adding 1 after you set x = 10, so then it should always be 11. Or am I missing something?
really?
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
March 21 2011 13:23 GMT
#820
On March 21 2011 22:07 Clearout wrote:
Even my professor couldn't see why it wont work.

It doesn't reach the breakpoint in the keyPressed() method, nor will it it do a println() if I put it in there. So the keyPressed() method doesnt react at all.

Morfildur:
As it is now it is supposed to be added to the panel since I have nothing infront of the addKeyListener() method called in the constructor, even if I put this.addKeyListener() to make it explicitly add to the panel it doesn't make a difference when running it. I have also tested and made sure that the panel is focusable so I'm sure it has the keyboard focus. These things make me fairly sure that the problem has to lie somewhere else. But if you have any way of checking what you're saying please tell

Thanks for responding, TL is my last hope


Try stackoverflow.com for "last hope".

I don't remember the GUI stuff for java, it's been a few years, but wasn't there a JForm or JFrame or something to which you add the panel?

Try to add the handler to any other control you use, the form, the panel, images, buttons, anything. Then check where the keypress gets invoked.

After googling a bit:
try this.requestFocus() in the constructor after the setFocussable(true)
Prev 1 39 40 41 42 43 1031 Next
Please log in or register to reply.
Live Events Refresh
RSL Revival
10:00
Season 1: Playoffs Day 1
ByuN vs Classic
Clem vs Cham
Crank 1636
Tasteless1233
IndyStarCraft 140
Rex135
3DClanTV 81
IntoTheiNu 63
LiquipediaDiscussion
The PondCast
10:00
Episode 53
CranKy Ducklings32
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Crank 1636
Tasteless 1233
IndyStarCraft 140
Rex 135
Harstem 90
ProTech54
EnDerr 4
StarCraft: Brood War
Britney 35486
Sea 3662
Rain 3520
Horang2 3155
Jaedong 1082
BeSt 716
EffOrt 472
Larva 461
Mini 434
Light 336
[ Show more ]
actioN 313
Stork 278
ToSsGirL 220
Last 155
Killer 155
Pusan 102
Mong 86
ZerO 80
Sharp 69
Snow 68
Mind 51
hero 50
sSak 47
Rush 42
Noble 35
Nal_rA 32
sorry 26
yabsab 25
Shinee 21
Sacsri 18
ajuk12(nOOB) 16
soO 14
Icarus 13
Movie 12
JulyZerg 12
NaDa 9
SilentControl 8
IntoTheRainbow 5
Bale 3
Dota 2
BananaSlamJamma536
XcaliburYe471
420jenkins389
Counter-Strike
shoxiejesuss815
x6flipin557
allub150
Super Smash Bros
Mew2King151
Other Games
B2W.Neo519
DeMusliM477
crisheroes286
Lowko158
SortOf60
Pyrionflax49
ArmadaUGS15
ZerO(Twitch)13
Organizations
StarCraft: Brood War
Kim Chul Min (afreeca) 1401
StarCraft 2
ComeBackTV 840
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• StrangeGG 23
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 3
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV398
Upcoming Events
WardiTV European League
4h 18m
ByuN vs NightPhoenix
HeRoMaRinE vs HiGhDrA
Krystianer vs sebesdes
MaxPax vs Babymarine
SKillous vs Mixu
ShoWTimE vs MaNa
Replay Cast
12h 18m
RSL Revival
22h 18m
herO vs SHIN
Reynor vs Cure
OSC
1d 1h
WardiTV European League
1d 4h
Scarlett vs Percival
Jumy vs ArT
YoungYakov vs Shameless
uThermal vs Fjant
Nicoract vs goblin
Harstem vs Gerald
FEL
1d 4h
Korean StarCraft League
1d 15h
CranKy Ducklings
1d 22h
RSL Revival
1d 22h
FEL
2 days
[ Show More ]
Sparkling Tuna Cup
2 days
RSL Revival
2 days
FEL
3 days
BSL: ProLeague
3 days
Dewalt vs Bonyth
Replay Cast
4 days
Replay Cast
4 days
The PondCast
5 days
Replay Cast
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.