Microsoft
Software
Hardware
Network
Question : Raising an event
Ok, so here's the problem.
I have a TextBox, contained within a JPanel, which is contained within a JFrame. When I hit the 'enter' key, I want to be able to detect it in the JFrame.
Any ideas?
Answer : Raising an event
you could add a method that added listener to textbox
public void addKeyListener(KeyListener
listener) {
theDefaultTextBox.addKeyLi
stener(lis
tener);
}
Random Solutions
How to declare the document I'm working in
Sysprep failed to set computername
Assigning values to a range of cells in Excel with VBA
Replacing Keyboard on Toshiba Portege A600
Syntax error (missing operator) in query expression
date input as string
VBA macro script populating cells from data source
prstat vs top command
Maxtor OneTouch 4 Family drive is no longer working
AutoCAD 2010 crashing on Windows 7