32,199 Topics

Member Avatar for
Member Avatar for hjangel

I am trying to write a program that generates an array of 3 random letters out of a choice of 6. I then want to copy the array and sort it, then check that none of the letters are duplicated. This is causing me major problems. The code I have …

Member Avatar for hjangel
0
121
Member Avatar for smartdetect

hi my project involves ping multiple comps simultaneously to do that i am storing results of each comp in its designated text file for that at startup i have to clear its contents i wanted to know how to do that in java???????

Member Avatar for jwenting
0
89
Member Avatar for faisyshah

hello every body in my site i want to use java script for main menu. for example i have link 1)about us 2)vision 3)product- steam generator Engineering services textile machinery etc when mouse over on the product link the link further show sub links i dont want to use flash …

Member Avatar for Javaknight
0
78
Member Avatar for niamul

Hi, i have written a servlet application as follows : import javax.servlet.HTTP.HttpServletRequest; import javax.servlet.HTTP.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.*; public class SubmitAction extends Action { public ActionForward perform(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response) { return mapping.findForward("success"); } } But when I compile this file, the packages http, org.apache …

Member Avatar for jwenting
0
104
Member Avatar for niamul

Hi, Can anyone please describe briefly what is the baisc function of the file web.xml in Tomcat5.0.19 ?

Member Avatar for jwenting
0
64
Member Avatar for jigvesh

The following is a piece of code for performing linear search: [code] import java.io.*; class search { String str; int key,size,seaArr[]; public void getdata() { System.out.print("Enter how many data you want to enter : "); System.out.flush(); try{ BufferedReader obj=new BufferedReader(new InputStreamReader(System.in)); str=obj.readLine(); size=Integer.parseInt(str); seaArr=new int[size]; for(int i=0;i<size;i++) { System.out.print("Enter element …

Member Avatar for jigvesh
0
160
Member Avatar for copycat

Can i insert a JPEG picture into my application with out import javax.swing.*; ????? or is where a way to do that with out import javax.swing.*; ???

Member Avatar for jwenting
0
84
Member Avatar for serkanozgen

How can i plot a histogram from the results of the following code. Thanks in advance for your help Serkan import java.io.*; public class LineLen { public static void main(String args[]) throws Throwable { // // Open the file final String filename = "LineLen22.java"; BufferedReader infile = new BufferedReader(new InputStreamReader(new …

Member Avatar for jwenting
0
100
Member Avatar for server_crash
Member Avatar for server_crash
0
71
Member Avatar for serkanozgen

How can i add reversing line code to the following code. Program must read the document which is selected by user from filechooser and write the reverse lines to another file. Additionally, I have to add a histogram which shows the length of each lines in document. [code] import java.awt.*; …

Member Avatar for freesoft_2000
0
135
Member Avatar for server_crash

I have this code that is suppose to append text to a JTextPane, using the Document method insertString(). I can't seem to get the attribute argument right, so maybe one of you can point me in the right direction... Here is the one line of code giving me problems, just …

Member Avatar for server_crash
0
352
Member Avatar for niamul

I am a new programmer in Java and now I am facing the following problem. If u please answer my queries it will be very much helpful to me. Can I use the following code : (a == 2) ? return 4 : return 5; instead of the following code …

Member Avatar for niamul
0
94
Member Avatar for nakulmadaan

i am trying to interrogate root DNS servers, using " TRACERT " but after going to first hop i am getting " Request timed out " please help. code is as follows import java.net.*; import java.io.*; class Whois extends Thread { public String traceCmdUnix = "tracert -h 10 ; private …

0
80
Member Avatar for nakulmadaan

IS THERE ANY PARALLEL FUNTCION FOR DIG IN JAVA. "RouteThrough", "RT", TYPE_RT:: I tried this in java but i am getting this error at run time "ERROR - DNS Error: Unknown resource record type 'RT' " It performs DNS lookups and displays the answers that are returned from the name …

Member Avatar for nakulmadaan
0
149
Member Avatar for Darkfoxx

I am making a program that allows the user to enter the year he/she would like a calendar for, then the program computes the day January 1st will fall on. Then it is able to print out the calendar (see 1st attached image). I am having a problem getting the …

Member Avatar for Darkfoxx
0
115
Member Avatar for indranil

Will you help me to give some good link where I will get the meterial to learn jsp,ejb with projects,code. my email is [email]indranilray@yahoo.com[/email]

Member Avatar for jwenting
0
62
Member Avatar for indranil

:) How I will install jakarta tomcat 4 in mycomputer though all the setting are being donerelating autoexec,please help me,Apache is running perfectly, can you help me?plesae mail me [email]indranilray@yahoo.comM[/email]y jvm is 1.4

Member Avatar for jwenting
0
74
Member Avatar for smartdetect

i want to know if there is a way to access the bios of the client from the server in java or in any other language so that the boot failures in LAN clients could be found out

Member Avatar for jwenting
0
127
Member Avatar for Diod

Im reading a book on java, and im on the lesson OOP and java. This is my code: [CODE]class Motorcycle { String make; String color; boolean engineState; void startEngine() { if (engineState == true) System.out.println("The engine is already on."); else { engineState = true; System.out.println("The engine is now on."); } …

Member Avatar for Diod
0
160
Member Avatar for freesoft_2000

Hi everyone, I have an embedded icon in a JTextPane and i am trying to print the contents of the JTextPane. I am getting the root view of the JTextPane and i am able to print the embedded icon from the the printer but here's the kicker in that it …

0
53
Member Avatar for kane

Hey all, I were wondering if someone could tell me what 'Chungaroo' means? Iv tried looking all over to find out what it means; i need to find out as part of a job assessment. Cheers for info [email]email edited by moderator[/email] :cheesy:

Member Avatar for chungaroo
0
103
Member Avatar for server_crash

I have a method that counts the number of words in a JTextArea. It works pretty good, except for the fact it counts characters that's not letters as words(such as "!@#$" would be a word)... Here is the code that I have got so far(no erros, compiles and runs fine, …

Member Avatar for server_crash
0
197
Member Avatar for mr_bemar

Hi, I want to load a simpel image into a JPanel. I use the following way: public class MyClass{ private Icon Bild = new ImageIcon("http://today.java.net/jag/old/green/duke/T4.gif"); JLabel jLabel2 = new JLabel(Bild); private void init (){ jLabel2.setBackground(Color.white); jLabel2.setForeground(Color.white); jLabel2.setBorder(BorderFactory.createEtchedBorder()); jLabel2.setPreferredSize(new Dimension(100, 70)); jLabel2.setIconTextGap(0); jLabel2.setLabelFor(contentPane); jLabel2.setIcon(Bild); } } I think the code is …

0
85
Member Avatar for DaveSW

The background to this question is that I have discovered a virus on one of my computers that adds a block of encrypted activex code to html and php pages. Unfortunately all the virus cleanup tools delete the infected files... being a webdeveloper this means a lot of my 'working …

Member Avatar for jwenting
0
149
Member Avatar for freesoft_2000

Hi everyone, I am currently trying to create a tool that jars all my classes into an executable jar. What i mean is that when i click on the particular jar file in windows explorer the program is run. I managed to create the jar file but the problem is …

0
173
Member Avatar for grussell

I have a JTable displaying the results of user-defined searches which are sent back across the Client Server network. First off everything displays fine, but when I specify search criteria, nothing is displayed. I have printed out the vector containing the information at the client end and all the data …

0
93
Member Avatar for George2

Hello everyone, I have a very important thread in my application and I do not want it to be terminated accidently, or in other words, if it is terminated for some reason (for example, be terminated by some unhandled Runtime exceptions), I want it to restart automatically. I am wondering …

Member Avatar for George2
0
147
Member Avatar for George2

Hello everyone, I want to load the binary content of a .class file in a dynamic approach. In more detail, I want it to work in the following approach. When given the name of a class, I can retrieve the binary content of the .class file. I have written the …

0
45
Member Avatar for paradox814

I have a library of my own stuff written in Java, and I use the JavaDoc feature to help me keep it organized. My question is how do I get JavaDoc to print my little blurb of the package? For instance, [URL]http://java.sun.com/j2se/1.5.0/docs/api/overview-summary.html[/URL] you can see what i'm talking about in …

Member Avatar for jwenting
0
75
Member Avatar for tigerxx

I need to open a word doc template from a java application and i also need to dynamically update the fields in the template with some values from the java application.. Can anybody help me????...... Thanks in advance..........

Member Avatar for tigerxx
0
160

The End.