Animated

181 byte By persianshadowa at 2007-10-1 13:21:57
hi i'm search for component or project that make the help animated similer to microsoft helper ( merlin ,....... Agent ) please help me thanks

ActionEvent - is it from mouse or keyboard or programaticaly?

465 byte By jumperFFa at 2007-10-1 13:26:44
I have a method like this:private void cbSettleActionPerformed(java.awt.event.ActionEvent evt) {...... here goes some code...}And inside of the method I would like to know is the action came from keyboadr or from mouse. Or may be I called that method programmaticaly.Is it possible in ...

Interaction with Internet Explorer

419 byte By DJ_Vikinga at 2007-10-1 13:27:45
Can I somehow interact with Internet Explorer with/from a J2SE application.I am looking for a way to open a URL from my Java application, and then enter a username and password in the login form on that URL.What about Java Native Interface?If it can not be done with a J2SE application, What ...

Mouse Motion Listener

1437 byte By Singee15a at 2007-10-1 13:36:41
How can i detect when the mose moves when the mouse is not located on the Frame? Here is my mouse motion listenerprivate class EventHandler implements AWTEventListener {private JPanel myPanel;public EventHandler(JPanel thepanel){myPanel = thepanel;}public void eventDispatched(AWTEvent event) ...

Following mouse motion?

325 byte By workerhqa at 2007-10-1 13:43:06
ok what i trying to do is that i wan a image to move according to the mouse direction..just like in rpg game..when let said you wan to move your image to west..then you move your mouse west and click it..then image will follow..which mouselistener will go the job and is there any tutorial for ...

Problem with PropertyChangeListener and JTextField

2104 byte By wolfgray2a at 2007-10-1 13:49:03
I'm having a problem with PropertyChangeListener and JTextField.I can not seem to get the propertychange event to fire.Anyone have any idea why the code below doesn't work?--/* * NewJFrame.java * * Created on May 15, 2005, 4:21 PM */import java.beans.*;import javax.swing.*;/** * * @author ...

difference between, jre, jdk, sdk and j2se

369 byte By snake2004a at 2007-10-1 13:54:49
Dear Sir/Madam,I want to do some java and j2ee development and run these applications in a java application server environment. Can anyone give me some advices on what should i need to download? Moreover, what is the difference between, jre, jdk, sdk and j2se? Should i need to download all of ...

Java Studio Creator - Reinstall

599 byte By Osmiuma at 2007-10-1 13:55:56
Firstly, sorry, I felt sure there would be a forum dedicated to JSC but I can't see it. Must be old age. This was the closest match.I purchased JSC just before my calamitous computer crash. Now I want to install it again and I need my serial number. Catch-22: It went in the crash. I don't ...

Question in using TimerTask(calling TimerTask for second time)

494 byte By bhagvanram@yahoo.coma at 2007-10-1 14:04:21
I have used the TimerTask to print the strings on the GlassPane. But the problem is that in the program, after a particular code, the TimerTask has to be paused for a period of time. But the TimerTask has only two methods.one is schedule() and the other is the TimerTask.cancel();.Once I am ...

FormSubmitEvent not being fired?

3433 byte By HolgerKa at 2007-10-1 14:04:47
[nobr]Hi there,as FormSubmitEvent subclasses HypertextEvent (and there is no "FormSubmitListener") I am expecting HypertextListeners to receive FormSubmitEvents. However the listener in the following Program is never being fired. What am I doing wrong?import javax.swing.*;import ...

How can I get keyChar from keyCode and modifiers

384 byte By doguleeza at 2007-10-1 14:05:46
Given a keyCode and modifiers, is there any way in java that I can:- Get the keyChar, if any that would go in the corresponding KEY_PRESSED and KEY_RELEASED events?- determine whether the KEY_PRESSED event should be followed by a KEY_TYPED event?I think this sort of thing must be locale and ...

ListSelectionListener does nothing... at all!

835 byte By Spoeliea at 2007-10-1 14:06:40
I have a very basic JList that I built with a DefaultListModel, single column of string items. SelectionMode is in single selection. Now I want to be able to retrieve the index of the item selected. For testing I did the following:list.addListSelectionListener(new ListSelectionListener() { ...

Focus problem using key event

1199 byte By Sunmembera at 2007-10-1 14:10:03
Hi!There is an application I've created uses key event that needs your help.As you know, that setting 'Mnemonic' to a JButton object makes the button accessible by a key mentioned in the parameter as the following ->OkButton.setMnemonic(KeyEvent.VK_O);Now, pressing 'Alt' and 'O' keys ...

JBuilder 9 / Java 1.5 Problem

1314 byte By dapplegate3a at 2007-10-1 14:10:43
Help!I'm running JBuilder9 to create a Java application. The project has been running fine on Java 1.4.2, but I received word from my company that everything will be switched to Java 1.5. I tried to switch over in JBuilder, but got an error. I looked the error up and got several solutions. ...

How to set a custom MediaSize in Java 1.4 Printing

230 byte By Alejandri_0482a at 2007-10-1 14:11:07
Helo, I need to set the paper size to 216mm x 93mm. I used the method MediaSize.findMedia(int x, int y, int units) but i returned null. How do i set a new MediaSizeName or anything else that could resolve my problem?

J2SE 1.4.2_08: Out of swap space?

6335 byte By rafcioa at 2007-10-1 14:13:32
Hi,we are using J2SE 1.4.2_08 with JBoss 3.2.5. Additionaly we are using JAI 1.1.2 for some operations on images. Last night we had this problem:[Full GC [Tenured: 69865K->69518K(1165120K), 0.7496240 secs] 95657K->69518K(1296192K), [Perm : 30981K->30981K(65536K)], 0.7497080 secs][Full ...

openinig internal frames by clicking menuitems

12831 byte By dgodshuklaa at 2007-10-1 14:14:11
Hi,I have been trying to open internal frames by clicking menu items but have not been able to do so because menuitems support only action listeners and not all mouse event listeners.Actually I wanted the event to return the frame n which the event has occurede.g., event,getframe(), so that I ...

Ctrl + Left arrow key does nt work using key binding

2925 byte By Sunmembera at 2007-10-1 14:14:14
Hi !I' ve a code that needs your help.There is something wrong in this code.PROBLEM IS MENTIONED AT THE LAST OF THIS PAGE...import java.awt.event.ActionEvent;import java.awt.event.KeyEvent; public class KeyBindingTest{JButton button;Action LeftAction;ImageIcon LeftIcon=new ...

Problem to override a component's existing key binding

523 byte By Sunmembera at 2007-10-1 14:18:00
Hi !Just tell me something, that how to override a component's key binding?As you know, when a text field [ I mean to say her object of the JTextField ] has the focus, pressingCtrl + A key would select the entire line the text field contains.But, I want the text field to do something ...

Getting started with SDK

271 byte By DaMijita at 2007-10-1 14:19:18
I just bought a new laptop, and I'm working on setting up jGRASP on this computer. I downloaded the jGRASP + JRE package, and Java SDK 1.4.2. But I don't know what to set up as my PATH and CLASSPATH in jgrasp. Can anyone help me out with this? Thanks in advance.

setText cannot be done from another class why?

502 byte By tleis1a at 2007-10-1 14:21:36
GreetingsIn a java source file, I have a JTextArea inside a JInternalFrame,when I use the method jTextArea.setText("text"); from inside the same file, it is Okbut, when I am working in another source file (class) and I want to call the setText method, It is not working, i am using the ...

storing uncompressed zip files

568 byte By glevnera at 2007-10-1 14:22:21
I am using ZipOutputStream to create an archive of (among other things) image files. Since the images are already compressed, I would like to archive them in STORED (uncompressed) mode. But when I do so, I get the following exception from ZipOutputStream.putNextEntry():STORED entry missing ...

Is it a bug?

346 byte By chitlesha at 2007-10-1 14:26:26
i have 2 simple java programs;i cant compile it with 1.5.0_03 but someone in another forum can!here they are : http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=2&t=011658 http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=2&t=011657any ...

How to select a JTree Node on a right mouse-button click?

159 byte By Kami_Pakistana at 2007-10-1 14:30:52
Actually, on a left mouse-button click a tree node gets selected but I want to select the node on a right-click,,how's that possible?Plz help me here!!

Loading classes from a jar which are not in Classpath

432 byte By ravi2082a at 2007-10-1 14:37:58
Hi allI have an assigment where in i have to browse thru a directory and load classes from that directory and read a common variable from them.I am able to do it for classes and jars which are in the CLASSPATH and also for classes which are not in the CLASSPATH(using URLCLassLoaders) but I am ...

JDK Installation size goes on increasing!

589 byte By Abhishek_Chaudharia at 2007-10-1 14:38:35
Hello, I have installed j2sdk 1.4.2_08 under Windows XP. When I installed JDK for the first time, the installation size under Control Panel>>Add Remove Prorams was something around 140MB. Now it shows around 250MB. So how does the installation size increase though I haven't added ...

How to connect a java swing application with outlook express?

110 byte By fun19javaa at 2007-10-1 14:40:28
Hello Can anyone suggest me how to connect a java swing application to outlook express (outbox).

StringBuffer have mistakes

1600 byte By superlia at 2007-10-1 14:46:46
I hava write a program, but when i compiled it , there are a lot of mistakes. Who can help me to solve.I am a novice at programming using Java in general. Hence I would appreciate some assistance in this regard!JButton monitor=new JButton("status");JButton report=new JButton("report");JButton ...

Date to Time

190 byte By nagusatyaa at 2007-10-1 14:48:00
hi mates,can any one give me the code for a class that converts date to time?i.e for example 01/01/1970 to railway time (09:00, 10:45, 17:00 etc)thanks in advance

Mouse wheel listener not working well on windows

306 byte By didonca at 2007-10-1 14:48:16
Hi,I use the mouse wheel to zoom on a component. It works well on linux and mac os X, but not on windows : the mouseWheelMove method catches only one time the MouseWheelEvent. So if i move the mouse wheel by 3 steps, only one will be listened.I use java 1.5do you have an idea ...

ZipEntry.getSize() always returns -1 when zipped with java.util.zip

669 byte By makeschina at 2007-10-1 14:48:40
Hi,using java.util.zip works just fine when creating ZIP files. It only seems that the attribute "Size" is not set properly when using setSize(...).When I zip the ZipEntry and set the size with setSize(long x), my debugger tells me that the ZipEntry-Object has in fact the desired size set.But ...

Need help adding events!

8411 byte By Timmaha at 2007-10-1 14:49:00
Hear is my code so far (for a telephone simulating applet):import javax.swing.*;import java.awt.*;import javax.swing.JRadioButton;import java.awt.event.ActionListener;public class TelApp extends JApplet{JPanel pnPanel0;ButtonGroup rbgPanel0;JRadioButton LocalBtn;JRadioButton ...

How to get JTree-Node Values Returned?

130 byte By Kami_Pakistana at 2007-10-1 14:52:47
I'm having problems in getting the value of JTree Nodes.How can a JTree Node return its value.Regards Kamran

How to remove mouse listener

431 byte By sumit_rahia at 2007-10-1 14:53:08
hi therethis is sumit , i m working on a swing application and i m using a Jpanelthat has an image icon now when i click on that image label it opens anotherwindow having the same image label but i want to stop it from being clicked and open another instance of a window thus in turn i want to ...

SDK installer locks up in WinME

293 byte By mmiikkee12a at 2007-10-1 14:54:35
I'm trying to install the J2SE SDK on my 'new' computer (although it's really used...) and when it gets to the part where it says "Configuring Windows Installer" it just sits there and hangs with an hourglass pointer. It takes ctrl-alt-del to get rid of the window. Any suggestions?

catch a JList event, which JList is in a JTable

1366 byte By RickFlaira at 2007-10-1 15:00:09
I have got a JTable and in its cells are JLists or JLabels (it depend on data)Here is code spinnet:DefaultTableCellRenderer ownRenderer = new DefaultTableCellRenderer() {public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int ...

Printing over a Dot Matrix Printer

150 byte By JavaPioneera at 2007-10-1 15:04:03
Hi,I want to do printing on a Dot Matrix Priner. Can any body help me how to perform this task. Regards,Umar Toseef

Updating a content pane with a new panel

1364 byte By IRUSEElma at 2007-10-1 15:05:49
Hello,I am looking for help with updating an onscreen view for an application.I have a jPanel with two puttons (loaded onto a JFrame). When the user selects a button, a jSlitFrame is now loaded on the screen (replacing the previous panel). How do I automate this?At the moment, I am erasing all ...

what is the difference between j2se 5.0 and j2se 1.4.2?

86 byte By laolaoa at 2007-10-1 15:06:51
who can tell me the relationship and differences in these two release versions?

how to convert timestamp to millisecond

224 byte By aman2005a at 2007-10-1 15:07:46
hello friend,i want to convert timestamp which is in format20050505092050444 (YYYYMMDDHHMMSSMMM) in to millisecond?can v do that?if yes plz give me code example to do thatthanks Aman

problem related to j2me application

290 byte By aman2005a at 2007-10-1 15:08:31
hello friends,I have made j2me application and it will work fine after download.when i download my application its icon comes in APPLICATION menu..but i want to appear my application icon with main menu how can i do so..plz explain it .plz helpAman

Using Java Icons in 3rd Party Software

968 byte By sanxa at 2007-10-1 15:09:50
Hi,First apologies if this posted to the wrong forum but I could not find any others that were suitable.I develop a business process modelling tool that allows the user to create models that can be activated and executed as live enterprise systems. I wish to add the ability to call java ...

Problem to use key binding in JCheckBox object

4040 byte By Sunmembera at 2007-10-1 15:10:19
I' m writing an application with j2sdk1.4.1_01There is a problem written just after this code.//IMPORTING REQUERED PACKEGES public class CheckBoxTest extends JFrame{JCheckBox checkBox;ImageIcon Normal = new ImageIcon(getClass().getResource("/Images/Normal.gif"));ImageIcon Entered = new ...

open a file when i click on a jtree node

424 byte By zmerlicnia at 2007-10-1 15:10:24
hello eb i have a jtree that display the file and the directory existing in a directory (root)every node is displayed with its paththat means that i caould have the node :"c:\directory1\texteFile.txt"i want to create a methode that could open the file when the useer double click on the node (i ...

how to open a text file

78 byte By zmerlicnia at 2007-10-1 15:10:46
helloif so have an idea on how to open a text file thanks

java.lang.Process output stream problem

2290 byte By PierreSeguina at 2007-10-1 15:12:33
Hi, I have a program that starts a process (java.lang.Process) using the java.lang.Runtime.exec() and it attemtps to interface with it using the provieded io streams. I have both the output and error streams being handled on their own threads and I have a hashmap of output lines/command pairs ...

How to pass events between different class

834 byte By daan_zhua at 2007-10-1 15:13:46
I am struggling a java code. There are two classes class A and class B. B listened a Button clicking . In class A, I instance of seveal B objects, so each B object listens to its Button clicking. The problem is when button is clicked in one of B objects, how can I pass this event to A. A class ...

how to get a node in a Jtree on which right mouse button is clicked

176 byte By Kami_Pakistana at 2007-10-1 15:16:12
I am dealing with a situation in which whenever tree component is clicked by right mouse button I am needed to get the tree node on which right mouse button was clicked.

Help needed. Enabling / Disabling Events

225 byte By armova at 2007-10-1 15:21:00
Here's the problem: I have a combo box and create an Item State Changed event, but this event constantly executes 2 times when I do anything related to this combo box. How can I disable this event and enable it later?

Disable hotkeys

551 byte By AlliRwegaa at 2007-10-1 15:24:06
Hi!My assignment is to develop lab access system for our university.ScenarioNo one can access the computer without entering pin.when you come to the computer you will be asked to enter a pin before using itall hotkeys that close the application , switch between application must be disabled.so ...