32,199 Topics
| |
How to move one Text Field to another Text Field by pressing Enter Key? in Java | |
Hey guys, I've got an input stream from the keyboard and wanting to know how much time passes between when the user enters something to when the user next enters something. That makes sence? Ive got a class called Timer [code] public class Counter implements Runnable { boolean startTimer = … | |
Hi all, I would like to execute an OS command like "cls" from my Java program, and am getting the following error: [code] D:\ext>java FileExtractionConsole Exception in thread "main" java.lang.NullPointerException at FileExtractionConsole.startExtraction(FileExtractionConsole.java:46) at FileExtractionConsole.main(FileExtractionConsole.java:33) D:\ext> [/code] Here's the snipt of my code: [code] public class FileExtractionConsole { public static void … | |
import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.event.*; import javax.swing.event.*; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class MyPaint extends JApplet implements Runnable { /* Declaring the variables.*/ JPanel panel; JPanel textAreaPanel; JTextArea drawTextArea; JScrollPane drawScrollPane; JLabel line, color, paint,kid,cil; JButton circle, rect, poly, ellipse; JComboBox cbLine, cbFill; GridBagLayout g; … | |
Hello All, I have absolutely no experience with linked lists. I have an array of Animals that I am trying to reference from a linked list located in another class. Can anyone point me in the right direction for starting this program? Any assistance would be appreciated. Thanks | |
haiii friends... pls help me to solve this... I have a listbox set to multiple. I can't get the values from this listbox. <html:select property="relationalOperator" multiple="true" size="9" styleClass="LABEL"> html:options collection="relationalOperatorCombo" labelProperty="name" property="id"/> </html:select> And, i want to get the value of selected one....During a single click it will go to … | |
import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.event.*; import javax.swing.event.*; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class MyPaint extends JApplet implements Runnable { /* Declaring the variables.*/ JPanel panel; JPanel textAreaPanel; JTextArea drawTextArea; JScrollPane drawScrollPane; JLabel line, color, paint,kid,cil; JButton circle, rect, poly, ellipse; JComboBox cbLine, cbFill; GridBagLayout g; … | |
hey guys.. can you help me explain this code? public Boolean insertAfter (double key, double dd) { Link current = first1 while (current.dData != key) { current = current.next; if (current == null) Return false; } Link newLink = new Link(dd); if (current == last) { newLink.next = null; last … | |
This applet I'm supposed to write needs to have a class that checks the range from the low number entered to the highest and gets and prints all the prime numbers found, as well as the whole number square roots, as well as the sum of the whole square roots … | |
Hello every1... I am developing a project in JAVA.. My project is APPLICATION MONITORING WIZARD..!!! Can I get any help..?? Even if I get an idea as to how I start off, will be QUITE helpful.. The applications that I am planning to monitor include : 1.JVM 2.Tomcat server 3.Website … | |
i need a simple mini project using oracle 9i and java connectivity pls suggest me some topics and ideas ...give some other ideas than usual hotel ,hospital ,student managements ...pls i am in desperate need of it!! | |
import java.awt.*; import java.lang.Math; import javax.swing.*; import javax.swing.event.*; import java.awt.event.*; import java.awt.Graphics; import java.applet.Applet; /* <APPLET CODE=draw.class WIDTH=600 HEIGHT=200 > </APPLET> */ public class draw extends JApplet implements ActionListener, MouseListener, MouseMotionListener { Button bDraw,bOval, bRect, bRounded,bHeading; Point dot[] = new Point[1000]; JComboBox cbLine,cbFill; Point start, end; int dots = 0; … | |
i devlop a java application which is intranet application. my appication is is clent-server application. but i have no idea how how can i deploy a jar file on client machine through remote machine. | |
Hi. I have a JAR file and want it to be executed on another machine in the network. I want to write an application that takes an IP address of a machine in the network and executes the JAR file on that machine. How can i do this?? | |
I'm having the hardest time trying to get java to compile in the command prompt, I am using jedit. I have both jre1.6.0 and jdk 1.6.0_10 downloaded | |
Hi i have read generic collection and its very good and usefull I understand the concept also but i need some real time example where collection is suitable for use please give me some example where we can use collection | |
Dear My Friends, I made an exclusive choice group like this: choicegroup.append("ADD",null) choicegroup.append("SUB",null) (I abstract the codes) The problem is that I want to say when I click e.g. OK button([B]commands[/B]) it do the adding action if I choose ADD or Subtract if I choose SUB. What should I do … | |
Hello, when it asks to place the elements of an unsorted array to a binary tree does this means a heapsort implementation ????? Another thing how can i take two numbers and print all the values between them ?? i mean in the heapsort ? Thanks in advance | |
I been trying to import the list in the text file to the word doc, the thing is, is that I can only get the last line on the text imported while I'm missing the rest of the top. Can somebody help please? [code] import java.util.Scanner; import java.io.*; import java.util.*; … | |
[code=java]public class Formal2{ String name; double longitude; double latitude; double distanceFrom; public double getLongitude(){ return longitude; } public void setLongitude(double longitude){ this.longitude = longitude; } public double getLatitude(){ return latitude; } public void setLatitude(double latitude){ this.latitude = latitude; } public String getName(){ return name; } public void setName(String name) { … | |
Hi guys, I have a hexagon class that given the side and the angle of the hexagon, it draws it on the screen (using Polygon class). I need to fill that hexagon with an image. It works if i have a .gif file with a hexagon and place it on … | |
Hello, I am a student. In my Java class we are learning about classes and objects this week. To me this has been very difficult. I have written the following bit of code for the program but I cannot get it to run. The piece of the program is designed … | |
the program works and all but i dont want my qts,dms,nks,pns to be in a decimal form i keep changing it but then it doesnt wotk can anybody help me pleasee i really appreciate it am not sure how to improve it..thank you so much.... import java.util.Scanner; public class Program1 … | |
Is there a way i can run a single void from my java class when using a shell/batch command or does it only run the main void when using a command such as "java MYCLASS" I have tried commands such as "java MYCLASS.VOID" or anything similar but im not sure … | |
Hey i want to create a method which counts the nodes from a binary tree that have exactly one child i did that but it returns error :S Can anyone tell me what's going wrong ?? Thanks in advance [CODE] //Count nodes from BinaryTree1 that have exactly one child public … | |
I had this crazy idea of creating a media player using java that would stream files from from my desktop computer, which I would set up some sort of server app for, and talk to a portable client app that I could download on any of the other computers on … | |
please help us in getting information regarding working of internet browsers(in general IE or Mozilla etc).... API's involved.. we want to develop a server tool that monitors and logs the users internet activity such as sites visited, on client machines in LAN. | |
I need to get the current date in the format MM/DD/YYYY and compare it to another string in the same format to see if the current date is greater than the string date. What is the best way of doing this? thanks. | |
I'm getting further and further to figuring out how my java program can read from my console application written in vb.net, i have some of my class here that i found on a site: This is mainly to do with reading numbers from input but il change it later. [CODE=java] … | |
Hey, I have to create a program which will accept two lists of words and place the contents of the first list to an [B]unordered [/B] array, to an ordered tree and to a hashtable. then each word in the 2nd list shall be checked whether it is contained in … |
The End.