36,051 Topics

Member Avatar for
Member Avatar for initialise

Hi all, I could really use some help with a multithreaded server/client application that I'm building. I'm first experimenting with basic concepts and then am going to implement the results within a larger application. However, I find myself stuck on a particular issue. Initially, I transfer a file from the …

Member Avatar for initialise
0
175
Member Avatar for macrogeek

Hello everyone, I am a beginner Java programmer and need your help in understanding What are Environment variables? I do not use any IDE for Java programming at present and use Command Prompt instead I would like to know about what is a CLASSPATH Variable and Is Classpath variable same …

Member Avatar for ~s.o.s~
0
155
Member Avatar for subrat_p

Hello frnds, Please help me on this java program "Implement Generic programming to perform arithmetic evaluation using command line argument."

0
65
Member Avatar for javacelibate

I got the below exception when I deployed my application in tomcat 5.The same was working fine in tomcat 6 too. [code=text]java.lang.NoClassDefFoundError: javax/el/ELException java.lang.Class.getDeclaredMethods0(Native Method) java.lang.Class.privateGetDeclaredMethods(Class.java:2395) java.lang.Class.getDeclaredMethods(Class.java:1763) java.beans.Introspector$1.run(Introspector.java:1265) [/code] As per the investigation I found.. The ELEvaluator.class of the provided jstl1.2.jar was not compatible with the jsp-api.jar of tomcat 5 …

0
73
Member Avatar for gvarma123

Hi, I have a file from which I want to extract values under a particular column and store them in an array This is the file. Could anyone help me to get to read the values under the column k1. fitk2 Date: 2005-08-26 15:37:10 Study: temp2 Data file: k2tis.dft Plasma …

Member Avatar for MALINI JAGDALE
0
9K
Member Avatar for cretaros

Hey gus can one demontstrate to me a simple way of loading a picture into a panel using JFilechooser.

Member Avatar for naief
0
109
Member Avatar for localp

Hello I have been trying to code this for the last few days, and i am unable to come across a solution for this. Would you please mind helping me out on this? There are some records in a notepad, which are as follows [CODE]1 Paul Mac 3 1 222 …

Member Avatar for naief
0
93
Member Avatar for sirlink99

I would like to make it so that when a character (picture or shape) moves it leaves a trail behind it that keeps getting more transparent. how would i start. If you jump the trail should follow up then down. Can anyone help me? Thanks

Member Avatar for sirlink99
0
86
Member Avatar for phouse512

Hello all, I'm making a simple game in minesweeper, and I have a Mine class with a JButton and some other information, namely an x and y variable for its location. In a class called Board, a constructor creates a multi-dimensional array of Mine objects. I tried adding mouselistener to …

Member Avatar for Ezzaral
0
1K
Member Avatar for LianaN

Hi! Please, tell me how to make the JDialog close button working in a proper way. Now it does not work. [ICODE]System.out.println(value);[/ICODE] produces 0. But if I write [ICODE]if (value == 0)[/ICODE], then nothing happens. Any ideas? Thanks! [CODE] public static void about() { final JOptionPane optionPane = new JOptionPane( …

Member Avatar for LianaN
0
225
Member Avatar for draven07

...How to make an Applet using a Panel consisting FOUR different Layouts(FlowLayout, GridLayout...etc...) that shall make an output of 9 Buttons in a 3x3 layout... ...

Member Avatar for jon.kiparsky
0
89
Member Avatar for lashbandi

The program must simply ask the user to type in a text since a text is a list of words separated by spaces. i need it..its really urgent..thanks..

Member Avatar for jon.kiparsky
-2
132
Member Avatar for manish250

hello all i have a jsp project when i run this using apache-tomcat on windows server 2003 a pop up window open in the top of the page notifying about the active x control.when i move the mouse over menu bar item it is not showing drop list.i an not …

Member Avatar for manish250
0
258
Member Avatar for shaik ameen

i wanna develop a web application using jsp and html .i know the process of developing but i thought that let i listen some suggestions of urs also .so please help

Member Avatar for peter_budo
0
57
Member Avatar for sach_ak47

hi , guys i am created one application using jsp and java but i dont know how to make jar, and what configuration nedded in manifest file i want to play that application in my mobile which is supportion java application

Member Avatar for Hakoo
1
948
Member Avatar for newcoder310

how to modify the contents of a file Example:: If there is a file with hello #how are you Then how to delete the # and maintain the same file

Member Avatar for masijade
0
108
Member Avatar for newcoder310

I've recently posted a thread called file modification and the problem has been solved........now could some1 kindly explain why is it necessary to delete and rename the file to insert or delete a character into the file at a particular location Thanks

Member Avatar for griswolf
0
79
Member Avatar for Latvija13

How would you go about skipping non-numeric characters in a string and only adding the sum of the numbers a multi line string?

Member Avatar for Latvija13
0
113
Member Avatar for acash229

Hey guys I am still learning how to use simple java. I want to try to do this program which i found in some book, but i cant seem to get how to started. They say its a beginners program, but i found it quite difficult on how to start. …

Member Avatar for acash229
0
159
Member Avatar for VernonDozier

OK, here's what I want to do (I realize the code below doesn't work, but it's what I would LIKE to do). I've converting things from C++ [code=JAVA] public void ChangePrimitiveArray(byte bytes[]) { bytes[0] = 1; } public void foo() { byte bytes[] = new byte[2]; bytes[0] = 4; ChangePrimitiveArray(bytes); …

Member Avatar for VernonDozier
0
216
Member Avatar for eikal

Hi im working on this program im getting a runtime error that says this ArrayIndexoutofbounds exception 0. heres my code [code] import java.util.Scanner; public class MillerCalculateTime { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Enter miles: "); double miles = sc.nextDouble(); System.out.print("Enter Miles per hour: "); …

Member Avatar for naief
0
180
Member Avatar for z00t

i have to construct a rectangle, print the location, then translate/print it 3 more times such that if they were drawn, they would form one large rectangle. [][] <- like so [][] here's the code & the error. C:\java>javac FourRectanglePrinter.java FourRectanglePrinter.java:11: [COLOR="Green"]incompatible types[/COLOR] found : void required: java.awt.Rectangle Rectangle box1 …

Member Avatar for Akill10
0
1K
Member Avatar for LianaN

Hi! I would like to read XML file from my SWING application, however [ICODE]list.size()[/ICODE] returns 0. Why does it happen? Thanks! [CODE] private void open() { SAXBuilder builder = new SAXBuilder(); File xmlFile = new File(openedFileName()); try{ Document document = (Document) builder.build(xmlFile); Element rootNode = document.getRootElement(); List list = rootNode.getChildren("Panel"); …

Member Avatar for LianaN
0
848
Member Avatar for LianaN

Hi! I would like to select images by using a rectangular area. All images that are inside this area, must be selected. I want this area to appear while mouse clicking and dragging. So, the size of a rectangular area should change dynamically according to a position of the mouse …

Member Avatar for LianaN
0
2K
Member Avatar for LegendX

[code=java]import java.text.DecimalFormat; import java.util.Scanner; public class Main { public static void main (String[] args) { String inputString; //For reading input. String input; //Read Input double automobileCost; double warrantyCost; double downPaymentAmount; double interestRate; double numberPayments; double salesTaxAmount; double totalPurchaseCost; double amountFinanced; double loanInterestRate; double loanLength; double monthlyPayment; double annualInterestRate; // Create …

Member Avatar for jon.kiparsky
0
172
Member Avatar for croker10

This is more than likely the dumbest sounding problem most of you will have ever heard of, but after three days of attempting to fix this myself, I have gotten no where. I am working on an older project, it works fine, but I need to upgrade it an add …

Member Avatar for croker10
0
236
Member Avatar for SeanC

Hi all, ive got a problem relating to the log4j.jar file (I suppose it would be the same problem regardless of what the .jar file is). I created a library based off the log4j.jar file, and the logging works and everything runs smoothly on my laptop. However, when I use …

Member Avatar for vealparry
0
123
Member Avatar for sateal8

Hello, I am having a hard time with a easy problem. I need to ask a user how many scores they would like to enter (up to 15) and then use a method to get the number of scores. in the form of Enter score 1: xx.xx Enter score 2: …

Member Avatar for sateal8
0
196
Member Avatar for cozmo87

I have hundreds of text files with data sorted in 3 columns and an unspecified number of rows. The number of columns can increase in the future, but will always be equal for all files. I want to combine these data into a single file with all the columns put …

Member Avatar for vealparry
0
139
Member Avatar for WolfShield

Hey guys! This is the code for a program I started today: [code=java] /* * IdeaCaptureMain.java * * Created on Jan 25, 2011, 4:33:45 PM */ package Idea; /** * * @author WolfShield */ public class IdeaCaptureMain extends javax.swing.JFrame { /** Creates new form IdeaCaptureMain */ public IdeaCaptureMain() { initComponents(); …

Member Avatar for vealparry
0
102
Member Avatar for lisaroy1
Member Avatar for jon.kiparsky
-1
102
Member Avatar for Valten1992

I have been doing an assignment for my my first year software course, in which we have to make a simple TicTacToe program in java. For the final 30% mark, we have to add a GUI in. Apart fro a tutorial only teaching me the basics (how to make boxes …

Member Avatar for lazeto
0
927
Member Avatar for hajjo

[CODE]public void buildTree(List<Fool> treeArr,Fool tr) { if(tr.getChild().size() == 0) { for (Fool cur : treeArr ) { if (cur.getParentId().intValue() == tr.getRight().getRightId()) { tr.getChild().add(cur); cur.setParent(tr); buildTree(treeArr, cur); } } } }[/CODE] there is around 10000 data, and the code is very slow. Its taking 8.5 second, I need to speed it …

0
57
Member Avatar for pscullion2001

I was wondering if someone could check this for me. Ive to write a loop in words, this is what ive came up with. while (there are days left in holiday) if (sunny) go to beach else go to swimming pool go home Basically its a program that tells you …

Member Avatar for javaAddict
0
108
Member Avatar for prince87

Hi Can some one give me some idea about code for icp protocol for client server Architecture in java. Thanks

0
55
Member Avatar for sciprog1

Hello Members, Can anyone point me to a web link which has the java code for a simple game that uses the keyword synchronized and the thread synchronization functions, wait() and notify()? Thank you!

Member Avatar for sciprog1
0
54
Member Avatar for thr

Hello i want to create a site that has features like google android market or iphone app store! i dont know what programming language or framework is better to create sites with these features. i am familiar with c++ and java programming language.i want to choose best programming language for …

Member Avatar for thr
0
71
Member Avatar for theurbanist

Hey Everyone, How would you go about writing a program that draws an image of an ice cream cone, using JFrame and JComponent classes, with a triangle on bottom and a circle on top?

Member Avatar for Akill10
0
114
Member Avatar for sitajaf

Hi, am trying to use a multicast socket in an application but I constantly get this exception; java.net.SocketException: error setting options. I have failed to find its cause and how to solve it. Pliz help (what could be causing it, and how can i solve it? thanx.

Member Avatar for sitajaf
0
209
Member Avatar for harshit99

i want to send mails to all those user who have logged in today at my website. by looking their last time of visit entries of the day in my database. i want the mails to be sent at a particular time like 11:30pm every day. how can i do …

Member Avatar for saduf
0
147
Member Avatar for ahmed_fawzy

why when i write this down : [CODE] private Statement getOrders_st=null; public ResultSet getOrders(String UserName) { ResultSet Rs=null; try { getOrders_st = Conn.createStatement(); Rs = getOrders_st.executeQuery("select order_history , ordr_date , ordr_total from orders where ordr_userid = '"+UserName.toLowerCase()+"'"); } catch(SQLException ex) { ex.printStackTrace(); } return Rs; }[/CODE] give NullPointerException at [CODE]getOrders_st …

Member Avatar for ahmed_fawzy
0
152
Member Avatar for kirit275

I want to load partial page when loaded in the same window ( i.e I don't want to load navigation menu bar again and again) but if someone opens it in new tab it should load the whole page(i.e including navigation menu bar) just like in facebook... I tried iframes(HTML) …

0
63
Member Avatar for george61

There is a working code about a program in which you should create differen Cat objects with name and color parameter and apply method to the objects. The problem is that I get the method working for only the last cat [CODE]public class Cats { public static String name; public …

Member Avatar for masijade
0
232
Member Avatar for M.Ovais

how we create a button using swing class..... I need help b/c I want to make a calculator but I am beginner and i dnt know swing class... Plz help me to create a button.....!!!!!!!1

Member Avatar for Eric Cute
0
65
Member Avatar for Tbusuk

Generally if we use <form action = "process.php">, this means that after the form is submitted, it will be processed to the file process.php in the directory. Mean while, in JSP, what is the meaning of <form action="<c:url value="/main"/>"> ? Because in the directory there is no main file or …

Member Avatar for peter_budo
0
181
Member Avatar for RicardoE

Hello, can you guys please sugest a way to have today date substracted 7 days, and have al of this 7 days into one String array? thanks.

Member Avatar for RicardoE
0
168
Member Avatar for 09tikimo

I really need help, my 1st assigment is due tomorrow and i've been working on it for a really long time and is just not getting it!!!! So please help me, it will be greatly appreciated. These are the questions that I haven't been able to figure out. Add a …

Member Avatar for Akill10
0
219
Member Avatar for Sparky_

Greetings, I am about 4 hours into JAVA and am making a big mess of it. Last night (at home) I installed the latest JAVA and NetBeans and got a "Hello World" Today I installed the 2 at work and am getting errors involving: "NoClassDefFoundError" (even with what worked last …

Member Avatar for ~s.o.s~
0
180
Member Avatar for WolfShield

I have a calculator program I am working on, it works except for one thing. When I type a large number into the calculator, say 125^4 it comes out with: 2.44140625E8. Any ideas on how to get this in-build function turned off? Thanks! -[b][i]WolfShield[/i][/b]

Member Avatar for bibiki
0
103
Member Avatar for caswimmer2011

Hello, I am trying to add audio files to my program. I am using a desktop application and not an applet. All the code that i have found online is for an applet. Is there a way for me to add audio code to a desktop application and not an …

0
97

The End.