36,051 Topics

Member Avatar for
Member Avatar for eleonora

Hello, I urgently need help, im trying to complete a class which will be able of multiple - clients but is not doing the required puprose. Can anyone be assistance of what is needed to add for handling the clients ?? Thanks in advance!! [CODE=java] import java.util.ArrayList; import java.util.concurrent.Semaphore; class …

Member Avatar for mzaiady
0
119
Member Avatar for regin

[B][I]hai dani members,can any one solve my question. how can i send and recive msg with pc and monitor under java plat form.[B][/B][/I][/B]

0
64
Member Avatar for a_iyer20

Hi All, I am using a String formatting which separates two strings using the "\t" (tab) character like below: String _str = "col1" + "\t" + "col2" + "\t" + "col3"; I get the following output: col1 col2 col3. this is fine. But because i have a horizontal restriction to …

Member Avatar for masijade
0
11K
Member Avatar for Pavan Kalyan V

Guys please please help me in this..... Write a program that inputs two DFS's D1,D2 and outputs whether L(D1) = L(D2) in Java... Thanks in Advance....!

Member Avatar for stultuske
0
93
Member Avatar for bob507

I'm an experienced programmer in a lot of areas, but I'd like to get into something I've never done before. What I want to do is write a response page for my website, which will let readers fill out a form (Autofill) and have the form come back to my …

Member Avatar for stultuske
0
77
Member Avatar for zoom2arun

Hi All Can anyone please guide me as to how to display same instance of an Applet in 2 browsers. The applet is a game, so only if same instance is shown in 2 browsers will the game be possible. Thanks in advance.

0
57
Member Avatar for hrlygrl923
Member Avatar for VernonDozier
0
164
Member Avatar for rickilambert

ok, im trying to use the set text method and the code im using it on looks as follows; [CODE]/** Convert the stringbuilder into an actual string, then return it */ String completeMatchList = matchList.toString(); String [] splitresult; String name = matchList.toString(); splitresult= name.split("\\s"); //txtbgreenentry.setText(splitresult[0]); //txtbyellowentry.setText(splitresult[0]); /** System.out.println(splitresult[5]); - this …

Member Avatar for Ezzaral
0
2K
Member Avatar for TofiLuk

I need a code that accepts only the username and password as 'admin' otherwise the system will exit. What will I use? no frame or dialog box.. just in command prompt. Thanks!

Member Avatar for Ezzaral
0
45
Member Avatar for KimJack

Hello All, I am using a stack to create a sort of calculator. My input string will be "5 6 add" I have to push 5, push 6, and when I get read "add" pop 5 and 6 and and push the answer. The question is after the string is …

Member Avatar for javaAddict
0
193
Member Avatar for sol42020

I have two "identical" jsp apps running on the same linux box. I've changed the connection info between both of them so that they run as separate sites. One site is called tema and the other is called tematest. They each have their own /home/ directory. Tema works fine, but …

0
58
Member Avatar for rickilambert

Hi, my question is, if i have a text area with a set of printed code, for example spurs vs chelsea man unt vs arsenal liverpool vs everton and then underneath i have two text boxes hame and away, how do i send the valeus for the home team to …

Member Avatar for VernonDozier
0
86
Member Avatar for zoom2arun

I need help for my program I need to run a applet in a server(tomcat) and the applet(a 2 player game) should be available for playing. Now, iam able to load applet in the browser, but each browser is running its own instance of the applet. I need a single …

Member Avatar for apsivam
0
114
Member Avatar for Shveetis

This is my code.. But the image doesnt appear on the frame when i run the program Please help JLabel label = new JLabel(); String path = "C:/Documents and Settings/Administrator/My Documents/My Pictures//22.bmp"; try { URL url = new URL(path); BufferedImage image = ImageIO.read(url); label = new JLabel(new ImageIcon(image)); } catch(Exception …

Member Avatar for Shveetis
0
116
Member Avatar for toomuchfreetime

I'm having a really anoying problem with my picture display for a kids game. In the code supplyed i've only given the PicPanel where the picture function is placed. ButtonHandler where the listener is for the answeering of the questions & NumberGame main class that imports the previously defined panels …

0
76
Member Avatar for techbrain55

Hello there, Java isn't updating. I went to the sun micro systems and tried to update but keep getting error message during installation. When I go to a site that uses java my screen shakes. How can I fix this problem? Thanks for any help. Techbrain55

Member Avatar for darkagn
0
76
Member Avatar for Dio1080

#1, Im tryin to get this bb code right, #2 I need help with finding the problem with me code, it is saying that my for loop is a illegal start type and also a identifer is needed, but I have no clue, this is my first time doing object …

Member Avatar for javaAddict
0
136
Member Avatar for madhusamala

i want the insert statement in jdbc for the following name gs al ts madhu 1000 500 sud 2000 600 now i want to access gs and al from the database table by using select statement now i want to add gs and al like totalsalary=gs+al; now i want to …

Member Avatar for javaAddict
0
110
Member Avatar for pradeep.singh28

Can I use more than one Resultset objects through as many Statement objects using a single Connection object...when i am doing this ,there is an error message" connection is already busy with another statement". Please help me to sort it out

Member Avatar for masijade
0
132
Member Avatar for temi2004

My company has just taken over a client website and I've moved it to a new server which we own but I'm getting a weird error which can be viewed here [URL="http://spratnets.com/site/"]http://spratnets.com/site/[/URL] I created a war file of the existing site and deployed it on this new server. I didn't …

Member Avatar for temi2004
0
126
Member Avatar for Thirusha

Hi I am using ajax and jsp in my web application. The user is required to fill out a few forms, for this i am using ajax to go through the forms, on one of the forms i need to set the session bean value and i am unsure as …

Member Avatar for ~s.o.s~
-1
85
Member Avatar for welbyobeng

I have just finished a java code and I am having trouble with displaying each division increase or decrease from previous quarter and also a company increase or decrease from the previous quarter. Can someone help import javax.swing.JOptionPane; import javax.swing.JTextArea; import java.text.DecimalFormat; public class twoarray { /** * @param args …

Member Avatar for Ezzaral
0
96
Member Avatar for abhi287

Hi all I want to acess the rows from the excel database with first row the maximum value, then next row with less than maximum and then thired row with less than and so on.. from the same column. menas values will be displayed as -- first max,then less than …

Member Avatar for masijade
0
86
Member Avatar for null_guy

Elo guys, i have been trying to create a real-time graph for my application!! I'm using JFree_Graph! I have modifed a code so as to include a thread but eventually got errors. [copyrighted code removed] And the output is [QUOTE] Entering Thread Now = Wed Mar 12 14:58:16 EET 2008 …

Member Avatar for null_guy
0
285
Member Avatar for fufu123
Member Avatar for monster597

Hello, I am new to java i am writting a small java program using threads to sort values in a array of integers. So far I have my array of integers but im having trouble writting the threads that do the actual sorting. Can anyone offer please offer me help …

Member Avatar for Ezzaral
0
102
Member Avatar for kooljoycie

hi everyone, am new here and it's nice seeing all the notes u all dropped off for newcomers like me. please i urgently need help in java. started java for a while, even wrote the certification but i did not make it so i abondoned it for a while. right …

Member Avatar for Ezzaral
0
68
Member Avatar for jinalh

hi all, m facing some problem when m trying to use calendar in my jsp with spring:bind tags. like below::: [code=html]<input name="popca1" type="button" tabindex="4" value="..." class="dateButton" onClick="if(this.blur)this.blur();gfPop.fDemoPopDepart(this.form.dc1,this.form.batch_date);">[/code] & 1 hidden variable :: [icode]<input name="dc1" type="hidden" value="06/08/2001">[/icode] with this in html tag after body tag i include ::: [code=html]<iframe width=174 height=189 …

Member Avatar for peter_budo
0
157
Member Avatar for amitahlawat20

// runtime error encountered , cannot resolve symbol i ,please help!!! class promote { public static void main(String args[]) { byte b=42; char c='a'; short s=1024; int i=50000; float f=5.67f; double d=.1234; double result=(f*b)+(i/c)-(d*s); System.out.println( (f*b) + " + " + (i/c) + " - " + (d*s) ); System.out.println("result …

Member Avatar for masijade
0
105
Member Avatar for codered152

hello i m trying to write a program in which program ask for user quiz score input and after user enter all the score then the program needs to drop the lowest score but i m keeping getting stuck at math.min method its keeping giving me errors. and i m …

Member Avatar for masijade
0
79
Member Avatar for Thirusha

I have looked around this site but have not found anything to help me. I have a jsp page which takes user input, the page is then posted to a servlet using ajax, the servlet then sets a bean value. My problem is that when i go back to the …

Member Avatar for Thirusha
0
113
Member Avatar for Chotaliya Divye

My Name is Divyesh Chotaliya. I am your new friend. I want a help from any people who is working with java or any one know abt my problem answer. my problem is I want to get all connected computer's IP address.the computers that are connected with server. so,i want …

Member Avatar for peter_budo
0
109
Member Avatar for silvermixmark

my problem is that i dont know how will i start, i have the idea but i cant apply it.,.,. can you help me to put the cation listener?? this is a case study i am a i.t student in the philippines. and my project is a student grades.. the …

Member Avatar for darkagn
0
90
Member Avatar for aarya

[B]Intro[/B] Web application development was once simple, there was HTML and a browser. There was no dynamic or business data, so no business applications. But this simplicity lasted for a small while. Today we are forced to do many complicated application developments. This tutorial assumes that you have the knowledge …

Member Avatar for swosti
0
259
Member Avatar for toomuchfreetime

Hey Seem to be having a problem updating a JLabel updateScore() and don't seem to know why. this is effecting my keeping score. I know it something small but for life of me can't figure it out. Other JLabels have been up dated (see attachment for full programe) [code=java] import …

Member Avatar for Ezzaral
0
3K
Member Avatar for madhusamala

i am getting a problem in updating my database. actually i am accessing two colums from my table and adding these two numbers , and the result i want to insert in the tables 3rd column The statement i am using to access two columns String str="select * from emp" …

Member Avatar for jwenting
0
124
Member Avatar for blakey87

I found some code on jspin.com, exactly what im looking for, I changed a few things around as it was not compiling properly, due to some errors, now Im at a stage were there are no errors but Im not forwarded to success or the retry page, sorry about the …

0
99
Member Avatar for MDGM

Hi all! I need to know how to [B]repeat a javascript code snippet[/B], until the [B]table's row is full[/B] - so [B]without stretching[/B] it. The row is inside the middle column of an 80% width table, made up of 3 columns, one for a left side graphic, the middle column …

Member Avatar for MidiMagic
0
123
Member Avatar for thanaras

Hello. I have those 2 classes and what i want to do is capture video in Grayscale, and then manage to take individual frames so as to procces them. The classes are modified classes, from a book called Java Media Apis (2002). I would be thankfull if you could take …

0
59
Member Avatar for mccloud

hi i am doing a proj in jsp and oracle 9i. i want to read data from oracle and show it in the text boxes in html/jsp. i know how to read the data from oracle, but i cannot put it into text boxes. can anyone tell me how to …

Member Avatar for electron33
0
905
Member Avatar for himanshu anand

this may be in any of the three lang i.e c,c++,java i have got the algo but not able to solve it :P the question is that there may be at most 50 ballons in 3D whose coordinats should be enter by the compiler and there is a shooter who …

Member Avatar for himanshu anand
0
168
Member Avatar for sonyb

Hello. This is my first time programming in any language so please excuse my ignorance. I am trying write a program that asks the user to enter any number 3 times . I have assigned a function that takes the number and outputs an answer . After the 3rd number …

Member Avatar for darkagn
0
85
Member Avatar for mattie5489

Hello, I am new to java. my problem is that i input a string, width and a delimiter and produce a "picture". For example, Inputs: String = AAACD*4baa Width = 3 Delimiter = ‘*’ Output: AAA CDb Bbb aa I have been having trouble with my code any help would …

Member Avatar for javaAddict
0
241
Member Avatar for Ankita B

Hi is there a way to save the selected radio box value into a session variable so that i can retrieve it and display on next page?..the selected value is displayed on the page but after navigation it shows the last value and not the selected one.. [CODE]String upid = …

0
75
Member Avatar for euniceee

I am a beginner in JSP, I am just wondering will it be possible to create a pie chart in jsp without installing new classes and stuff? If yes, how can I do it? Or else will it be possible if I retreieve the data from mysql and display it …

Member Avatar for lookof2day
0
214
Member Avatar for vedmack

I have an Xml file from which i want to delete some different node, im doing it by using the .removeChild method, and it works just fine, the problem is that after im doing so , i getting empty line instead of the deleted node (it does not affect the …

0
67
Member Avatar for kim2_0016
Member Avatar for stultuske
0
56
Member Avatar for eranga262154

Hi all, I want to dispose a JFrame using a click-event. So I simply do this on Netbens. [CODE] private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); } [/CODE] But it not work. Do you have any idea. I just want to dispose all the …

Member Avatar for eranga262154
0
150
Member Avatar for Ankita B

Hi, I have a jsp page (page1.jsp)which is in form of a table with 4 data items.Each of these is a separate function.,user,site,txn,target. 1) user id........textbox user name..textbox find user..button when i click on find user it navigates to Displayuser.jsp from where i select the values and pass back to …

Member Avatar for Ankita B
0
302
Member Avatar for mowen85

I have a JSP page with some text boxes. The user fills out the form, clicks the Apply button, the inputs get saved to an Oracle 10.g database. The form can be viewed again and the text boxes are populated with the saved data so the entries can be edited …

Member Avatar for ~s.o.s~
0
270

The End.