22 byte By
acvwerha at 2007-11-27 2:10:26
[url]this[/url]
I have a small sample program that replicates my problem. When this program is run a window is created. If you select File->New another instance of the program window is created. Now if you try to go back and bring to front the first window, keyboard focus is not transferred when run under ...
I'm new to these forums, so if this is the wrong place, please move it. Heh, kinda stupid bot 'cause I haven't done like anything, he's just a command line bot, but for some reason, I always get "I don't understand: Hey" or whatever I type. Here is the code:import java.io.*;public class ...
Hi,I'm new here to the forum, so I am unsure where to post this!It's been a while since I've used java, but I thought I'd refresh my knowledge to resolve a problem I am having - if anyone could help me with this it would be fantastic!The issue I am having is the RF interference in my house ...
3807 byte By
Lisa_ga at 2007-11-27 0:08:58
I would like to detect an event on a button, which is easy enough. But I already have a timer event happening and when I click a button nothinghappens. I would like to store what button was pressed so that within the timer event I can check if a button and which button has been clicked and act ...
543 byte By
aybhavea at 2007-11-27 0:02:00
Hi,Im developing a P2P backup system for LANs in Java. I have the following problemLets say there is a file called test.txt in my Windows file system. My software is running on Windows at this time. The user opens up the file through Windows Explorer and modifies it or deletes it altogether. Is ...
1360 byte By
-Deba at 2007-11-26 23:32:25
When I pressed a JButton to display a JFileChooser, it takes longer sometimes than others.There is enough of a delay that it makes me question whether I pressed the button or not.I changed the cursor to a wait cursor, which I release after creating the JFileChoser, however that has issues.I was ...
I have a periodic task and I need to pause it for a undefined time.but when the periodic task is restarted it should remember the time that spent since the last periodic event till the begining of the undefined time,this way the first periodic event should be shorter than normal.can it be ...
plz help me to make a JTree with double click event on each node
173 byte By
duldula at 2007-11-26 21:55:15
hi all! can any one tell how i watch my folder using javathere can be any activity in my folder.for example creation/deletion of folder in my folder etc
1135 byte By
Ree86a at 2007-11-26 21:43:27
Hello,I have created Canvas over JScrollPane. How to make the ScrollBar scroll down when the mouse is dragged(anywhere) on the Canvas?This is some parts of my code.public class Try extends JFrame{JPanel all = new JPanel(new BorderLayout());JPanel main = new JPanel(new ...
664 byte By
apa7a at 2007-11-26 21:29:33
I currently have a screen with a textfield where the user enters an amount then clicks a next button to proceed to the next screen. I added logic so if the amount entered by the user is greater than the amount billed on the screen I am displaying al jlabel to inform the user. My problem is that ...
A textbox with a button, if i execute button to start the backend program and anything submitted from the textbox should be saved to a file by the console program. how can i do this..help me..thx..
Create a component, make it focusable and add a key listener. then remove it from it's parent and add it back again. It doesn't respond to key events and there doesn't seem to be a way to switch this back on.Is this a bug? If so, is it a known bug? Can anyone suggest a workaround?package ...
475 byte By
MuriloGa at 2007-11-26 18:03:51
I am relatively new to swing and need some help or direction in respect to dragging buttons. Specifically, dragging a button and placing it in between other buttons. I have an array of buttons currently, and I want to be able to pick any one of them, and drag them in between another. I have ...
I am trying to manage 10 buttons at once, each labeled 1 to 10. I know I could make 10 inner (or outer) classes to handle the actions, but that seems a little messy to me. If I could find out what the text is of the button that was pressed, I could run this is very little code. However, if I ...
95 byte By
NhTina at 2007-11-26 17:11:28
i have a JList, how i handing a event when i double click on item in list ?thanks
464 byte By
cyaevana at 2007-11-26 16:54:29
Hi,I'm new to event handling in Java GUI development, and I'm just wondering how I can achieve the following effect in my GUI:Say I have a text field, and and I input some value (e.g. 3), and when I move the cursor away from this field, how can I retrieve this value 3 from it?I understand you ...
How can I catch events(for eg: mouse clicks) on the Desktop? I do not want to use any AWT or Swing components in my application.Also, i want to get events on other java/non-java application windows are visible on desktop, as long as my application is running. In short, the requirement is to ...
1608 byte By
WimEa at 2007-11-26 16:47:41
Hi,I have (almost) managed the concept (tight) coupling. I switch panels on the display by invoking a method in the parent. However something strange occurs:I have a first panel with an actionListener, getting a user name.I have a second panel showing a simple list of choices 1 .. 2.. 3 .. also ...
Hello,I am writing an app which should fire as soon as a file is dropped into a directory. Any suggestion/ideas plz?Many thanks
126 byte By
angel33a at 2007-11-26 15:46:43
Whenever the SAVE BUTTON is hit the data (EMPLOYEE TABLE) should go inside a screen .plzz helpp how to write the logic?
Hi,I'm listening to key events and it's fine one one key is pressed;if (event.getKeyCode() == KeyEvent.VK_UP){...}But I need to know when a combination of keys is pressed (like ctrl-a). How can I know if two specifics keys are pressed together?Thank ...
678 byte By
Eruditea at 2007-11-26 15:22:38
Urgent, Howto Modify MouseEvent and add CTRL_MASK modifier?I have a JTable, which I have setSelectionMode( ListSelectionModel.MULTIPLE_INTERVAL_SELECTION )I need a way of Simulating a CTRL key pressed when a left MouseButton clicked is triggered. I need to control this with program logic, since ...
263 byte By
KayDeEa at 2007-11-26 14:23:49
Hello!I want to write a java prog that can find out if all files in a particular directory have been selected and want the prog to do something if I try to copy all those selected files somewhere else.Is this possible in java?Thankyou.
255 byte By
KayDeEa at 2007-11-26 14:23:48
Hello!I want to write a java prog that can find out if all files in a particular directory have been selected and want the prog to do something if I try to copy all those selected files somewhere else.Is this possible?Thankyou.
...... incarca.inc.addActionListener(this);pack();setLocationRelativeTo(frame);setVisible(true);}public void actionPerformed(ActionEvent e) {if("Incarca" == e.getActionCommand()){System.err.println("Button Pressed");incarca.getNumbers();}incarca is a JFrame and inc is a button on that Frame. ...
7534 byte By
Japhetha at 2007-11-26 14:08:07
I made a fullscreen application and I'm trying to get it to respond to the mouse or keyboard input. The problem is it only responds a few second after I press the button. Does anyone know how I could speed up the response? All my code is posted below.import java.awt.*;import ...
153 byte By
Neo2001a at 2007-11-26 13:47:38
in my web application i want to fire a class's method after every specific number of seconds.. pls give some suggestioins.... im using tomcat 5.0
Hello Everybody,This 'll be my first post here. I intend on developing a simple java program to intercept print jobs sent to be printer so that the sender of such jobs must authenticate before the printer prints such jobs. The software / program is to cortail access to our lab printer. I would ...
Hello,I have two classes: ClassA and ClassB. Within ClassB, I have an inner class, InnerB. InnerB is a JCheckbox. When the JCheckbox is selected/deselected, ClassA needs to know about it. Whats the correct way to handle such a situation where an event is fired by an inner class and has to be ...
Hi,Class A has an inner class Button Listener which listens Action Events. I want to add this event listener to buttons in class B . why i need to do it this way is because, i need to use many methods and variables of class A once the event is fired.speaking in object oriented way....I need ...
On my home computer everything works fine, but on my laptop i downloaded the new jdk version 6 and for some reason or another, none of the recent event listeners work (ie. MouseListener, KeyListener), and there are also some other classes and interfaces that don't work. However, i did some ...
Hi. I am currently making a program that uses 3 buttons. I am having trouble with the action listener. I am trying to do events based on which button was clicked but the getSource() comparison isn't working. The whole actionPerformed event works fine when I press any of the buttons but I am ...
Hi everybody,I was trying to program a simple calculator. I assigned the buttons the addActionListener method through ...
hi,Is there a way of enabling a popup menu to be displayed by strictly a right-click, I saw the mouseEvent Listenter implets on click which means both right and left, but is there a way to make it just the right?
491 byte By
cvinodka at 2007-10-3 11:52:22
Hi all,This is the exception I get whenever I try to insert into the data databse.java.sql.SQLException: [Microsoft][ODBC driver for Oracle][Oracle]ORA-00020: maximum number of processes () exceeded.At this time, When I click alt+ctrl+del for the running processes.I could see a process named ...
412 byte By
cvinodka at 2007-10-3 11:52:17
Hi all,I am getting these two problems while inserting the data into the databse.1.java.sql.SQLException: [Microsoft][ODBC Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_ENV failed2.java.sql.SQLException: [Microsoft][ODBC driver for Oracle][Oracle]ORA-00020: maximum number of processes ...
1486 byte By
Haensela at 2007-10-3 11:04:25
Hello,my name is Hans-Martin. I am a student from Germany.I have a very big problem. My Professor wants me to send events via JMS to a Complex Event Processing Platform.First of all my professor gave me the simple job to create a jsp with 4 Buttons. He wants to see 搒omething move攨.The task is ...
426 byte By
McGowana at 2007-10-3 10:40:33
Hey,I'm working on a java-beans project and I am trying to come to find a way to signal an event when a variable changes. Basically looking for a way to constantly send the refreshing data to the listener bean.I can easily get it to work send the data with pushing a button but this is supposed ...
1797 byte By
JCruza at 2007-10-3 10:31:56
Hi everyone.I'm building an application that has a JTable inside a JScrollPane. Usually when you click the table with the left mouse button it selects the row (in my case). I also have a popup menu that shows up when the right button of the mouse is clicked. Well, this popup menu has to ...
272 byte By
athoubaa at 2007-10-3 10:26:12
HI...wait for first key DOWN- display chars that are under the key- on every other keyDOWN ON DE SAME KEY withIN xxx ms, DISPLAY ANOTHER CHAR- if more that xxx ms no key pressed, that character is final, and you can move to the next one.
I am a cs student and the past few assignment we have had to make it so a color on some object randomly changes color. I have yet to figure that out. On our new assignment we are using an event timer and the ball in our class has to change color every few seconds or so. Can anybody give me some ...
408 byte By
antonja at 2007-10-3 8:18:30
I have an application that continually reads through a directory of files to determine if any of them need to be processed. It would be far more efficient if my process was woken up by the presence of a new or renamed file in the directory but I don't know how to acheive this - presumably ...
329 byte By
amit117a at 2007-10-3 8:14:19
Hello, I'm opening a new window (implemented by a JFrame), and interested to know which events occur when the window is opened (either when calling pack method or when calling setVisible(true) on the frame). Especially, does a COMPONENT_RESIZED event occur when the window is opened? Thanks in ...
2052 byte By
wilagera at 2007-10-3 6:53:22
Hello,I created a JFileChooser (meCreateChooser) which shows up when the user clicks on a JMenuItem. The user has to type a name for his file and the program checks to see if that name already exists.If the typed file name already exists, the program must produce a JOptionPane and prompt the ...
1251 byte By
DJ_Kata at 2007-10-3 6:25:17
Hi, I have a couple of j buttons in my application i want the println to be done when the Jbutton is pressed and not when it is released. Any ideas?public void actionPerformed(ActionEvent evt){if (evt.getSource() == button1){System.out.println("Gas geven");}else if (evt.getSource() == ...
I m using one Class extending JFrame.within this class I have instatiated one JTabbedPane object .I have added several PanelClass (Classes extending JPanel).JTabbedPane object is used in setContentPane() of the base Class.How can I handle the event of different componets of different panels.I ...
how i can acess listeners like mouse listener or other in a jsp or servlet
Hi All,Any database update event and listener classes in java or j2ee APIs?.how to generate database update events?can you provide me any suggestionsThanks,Nirmal