32,199 Topics

Member Avatar for
Member Avatar for synplace

I need to write few class which are to be used to validate the data. I know some validations which we will use generally. if anybody knows more please help me by providing the list of some more validations. The validations which I know are as follows: String: length isAlpha …

Member Avatar for ~s.o.s~
0
92
Member Avatar for just asif

hi to every body.me is new in java.in future i want to built a software in java. so i want to b a java java java master.is someone who can guide me ? is?

Member Avatar for masijade
0
45
Member Avatar for anti_genius

Hi, I have a program that draws a line between two points when the user clicks at two points on a canvas (added in a frame) and clicks Repolot button. Each time i click the button the previous line is gone. But i want that when i click the button …

Member Avatar for javaAddict
0
144
Member Avatar for aboo017

Hi guys, i've been stuck on one part of an assignment where i have to call a number 6 times from a different method/class. I thought maybe doing a for loop calling its 6 times but i'm not sure how to call the method into the other method, this is …

Member Avatar for aboo017
0
110
Member Avatar for treyd

I created an array, and I am trying to pass it to a method then double the size of that array. Than I would like to print the array. I am at a loss right now as to why it wont print, and what I am doing wrong. Any help …

Member Avatar for treyd
0
111
Member Avatar for oneat

Let's claim that I have jar called j.jar in folder called: my_folder. Then in this jar I have folder called:javclass and in this folder ther is main class called: main.class. And I have a question: How html file which opens it should look like ??

Member Avatar for and12
0
91
Member Avatar for java dummy

I'm trying to write a tic tac toe applet. Below is the code. I can't get it to line up in 3 rows of 3 and also it shows "win" as soon as 1 button is clicked. Any help would be appreciated. Thanks. import java.awt.*; import java.awt.event.*; import java.util.Random; import …

Member Avatar for and12
-1
96
Member Avatar for scias23

i'm thinking how to do this since last week. i can make a rps game in java, BUT not in OO way. just the simple ones. what i want to do is a rps game - the OO way. i planning this program to have two options, play with player …

Member Avatar for TheWhite
1
601
Member Avatar for llemes4011

Hello... again. I'm sorry about asking about this again, but I'm still stumped =S I can't find any tutorials or examples on this matter*, and I don't know what to do. I still need to find a way to get commands to paint from one JVM to another. I tried …

Member Avatar for llemes4011
0
99
Member Avatar for freelancelote

Hi, I'm starting working with the Graphics and related and strugling to understand it. I'm trying to do something as simple as drawing a String on a panel. The string changes on runtime. I post the code below. In effect, every new number is drawn on top of the old …

Member Avatar for freelancelote
0
207
Member Avatar for Lokth

Hey guys and girls. Im working on a program at the moment, the aim of which is to determine a users age level (by year at school), and give them a set of randomly generated maths problems based on their age (eg- 1st grade only has to deal with numbers …

Member Avatar for freelancelote
0
253
Member Avatar for bernadlosini

hi, i am doing a system in java for my assignment .that system is able to add ,delete,modify records. i have created sql commands for all in my programme.but i don't know how to put codings on above buttons here i attach some cods.any one please help me. this is …

Member Avatar for javaAddict
0
166
Member Avatar for Babeinjava

I am a beginner in Java programming after a few lessions I was provided with this task and I have no clue how to go about it.this appears to be simple but for me is a mountain, if any one could help I will really appreciate it. Here goes the …

Member Avatar for Babeinjava
0
130
Member Avatar for bernadlosini

These are my three functions explaining sql functions update and delete functions .can any body help me to write the buttonactionperformedfunction? [ICODE] public boolean editBus(int busid,String name,int seats) { boolean bEdited = false; try { updatebus.clearParameters(); updatebus.setString(1, name); updatebus.setInt(2,seats); updatebus.executeUpdate(); bEdited = true; } catch(SQLException sqle) { sqle.printStackTrace(); } return …

0
61
Member Avatar for shraddha_gupta

i am creating my jar file jar cvf javaappl.jar javaappl jar cfm javaappl.jar manifest.txt javaappl manifest is added correctly. but when i try to run java -jar javaappl Invalid or corrupt jar is displayed. Earlier it has run, but the same thing is not running now. What is the probable …

Member Avatar for sbhavan
0
114
Member Avatar for and12

I know what a Jar file is. [url]http://java.sun.com/developer/Books/javaprogramming/JAR/basics/build.html[/url] I just can't figure out how to get it to be recognized as a command. I have the same problem with appletviewer. I was told i was suppose to to set some path but i am not sure where it is. I'm …

Member Avatar for sbhavan
0
173
Member Avatar for gunjannigam

I want to create a custom NumberFormat which returns empty string for negative values and the double number iteslf for +ve and zero values. Please guide me....................

Member Avatar for gunjannigam
0
157
Member Avatar for ishlux

Hi all, I am new to java i want to download, jdk1.5 as my guide specified ,, but i dont know the link......so please help me out........and tell me out to install it on my pc. Thanks, ishlux

Member Avatar for masijade
0
66
Member Avatar for PhiberOptik

Hey folks, Now java may be the wrong language for this but I would like to get a motion sensor program going (if possible). Basically I already have hooked my webcam up, and can import it to a window via java. I am trying to find a way to basically …

Member Avatar for jakx12
0
382
Member Avatar for scias23

i just dont know how to convert this. i have three integers for month, date and year. year is a two digit input. i want to convert these three into one variable type long.. but i dont know how to do it. i tried adding the three integers, but i …

Member Avatar for scias23
0
104
Member Avatar for BOONISRIDHAR

Hi am new to Java and am developing a multi agent application using Jade. I have coded 1 agent using Java and the other agent using vc++. My problem is communication between java and vc++. 1) I need to run the vc++ program within the java program for which i …

Member Avatar for BOONISRIDHAR
0
78
Member Avatar for viv.rosa.park

//track the number of times each face of the dice is rolled if(Integer.parseInt(d1.toString()) == 1) one++; if(Integer.parseInt(d2.toString()) == 1) one++; if(Integer.parseInt(d1.toString()) == 2) two++; if(Integer.parseInt(d2.toString()) == 2) two++; if(Integer.parseInt(d1.toString()) == 3) three++; if(Integer.parseInt(d2.toString()) == 3) three++; if(Integer.parseInt(d1.toString()) == 4) four++; if(Integer.parseInt(d2.toString()) == 4) four++; if(Integer.parseInt(d1.toString()) == 5) five++; if(Integer.parseInt(d2.toString()) == …

Member Avatar for Salem
0
73
Member Avatar for harshinianu

[code=Java]public void showPlayer(int cell,int playerID){ int row = this.getRow(cell); int col = this.getCol(cell); cellLabel[row, col].TextAlign = ContentAlignment.MiddleCenter; cellLabel[row, col].BackColor = Color.Purple; cellLabel[row, col].ForeColor = Color.Gold; cellLabel[row, col].Text = "P"+Convert.ToString(playerID); }[/code] Here is a part of my code. How can I add a jpeg image to the above cell, called cellLabel[] …

Member Avatar for JamesCherrill
0
82
Member Avatar for chuppy

All Java applications must contain at least one method. The name of this method is either main() or Main() true or false??

Member Avatar for JamesCherrill
0
109
Member Avatar for Dajer

hi friends... I have Written some codes for adding and retrieving data from RMS: [CODE] public void commandAction(Command command, Displayable displayable) { if(command==exit) { destroyApp(true); notifyDestroyed(); } else if(command==start) { try { recordstore=RecordStore.openRecordStore("My RecordStore",true); } catch(Exception error) { alert=new Alert("Error Creating",error.toString(),null,AlertType.WARNING); alert.setTimeout(Alert.FOREVER); display.setCurrent(alert); } try { String outPutData[]={"Mary","Bob","Adam"}; for(int x=0;x<3;x++) …

Member Avatar for puneetkay
0
134
Member Avatar for angellove40

Hi,I am in TE comp Engg.We have got a project in ADBMS subject using Applet or Swing.we are using Jpanel.We had made admission form in which user will fill the form and data will be stored in Database.So to make the form look good we want to add image at …

Member Avatar for peter_budo
0
80
Member Avatar for java dummy

I am trying to say " if a number is divided by 2 and the modulus is equal to 1" if(count/2% == 1) or if(%(count/2) == 1) It's not working. What am I doing wrong? Would really appreciate help. Thanks.

Member Avatar for java dummy
0
89
Member Avatar for and12

I can't seem to control the size of the applet when it appears in the appletviewer and i assume that will be how it looks on the web. Right now, on the web, my applet is too big: [url]http://blogfriendlyzone.webs.com/WheelOfFortune/WheelOfFortune.html[/url] When i run it as application, it obeys setSize to make …

Member Avatar for llemes4011
0
96
Member Avatar for and12

I want to create a program where i can create data files, either in text, binary: data or objects. Once the data files are created by the user they can be used to view them in all modes. They should view existing data files in the current or sub directory …

Member Avatar for puneetkay
0
122
Member Avatar for fareast87

Hi, I am using a code to read a grayscale image and store the pixel value in a 1D array. But the code is taking a default image(though i am providing the complete path for the image to be loaded) and the height and the width are returned as -1. …

Member Avatar for fareast87
0
122

The End.