hi i'm search for component or project that make the help animated similer to microsoft helper ( merlin ,....... Agent ) please help me thanks
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 ...
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 ...
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) ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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() { ...
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 ...
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. ...
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?
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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!!
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 ...
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 ...
Hello Can anyone suggest me how to connect a java swing application to outlook express (outbox).
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 ...
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
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 ...
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 ...
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 ...
I'm having problems in getting the value of JTree Nodes.How can a JTree Node return its value.Regards Kamran
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 ...
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?
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 ...
Hi,I want to do printing on a Dot Matrix Priner. Can any body help me how to perform this task. Regards,Umar Toseef
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 ...
86 byte By
laolaoa at 2007-10-1 15:06:51
who can tell me the relationship and differences in these two release versions?
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
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
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 ...
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 ...
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 ...
helloif so have an idea on how to open a text file thanks
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 ...
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 ...
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.
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?
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 ...