32,204 Topics

Member Avatar for
Member Avatar for kyle.mace.35

Alright so I am making a rock paper scissors games and along with this game I am making a graph to show who has won more. My problem is how do I keep drawing the graph everytime someone wins?

Member Avatar for castajiz_2
0
80
Member Avatar for stanley.dominic

hi friends am nubie here and in world of programming i ve a i've learn few things about java programming and i wish to create a pos system using java but don't know were to start from, i need a head up my part of programming some advice and a …

Member Avatar for Helpmeplease123
0
218
Member Avatar for Benjamin_4

hello guys i am still new in java and i have been battling with this problem. i want to filter my data in my jtable. i have got the following data in my jtable which is from my database. | name | gender | courses | |------|--------|---------| | Ben | …

Member Avatar for mKorbel
0
1K
Member Avatar for manel1989

Hi everyone! In my code when I click on the "Show Results" button it shows me the result is a table in another interface other than the main interface, untel now everything is fine but when I changed the method : I just want to show this table in the …

Member Avatar for JamesCherrill
0
393
Member Avatar for Timlince55

I need to print out a pattern that looks like this when N=6 1 21 321 4321 54321 654321

Member Avatar for nabanit.sarkar
0
239
Member Avatar for Violet_82

Hi all, yes still a question about the API! I am looking into event handling at the moment (basic things with text fields, checkboxes etc ) and I have noticed that different components generates different events which are in turn handled by different objects. As an example,let's take a checkbox. …

Member Avatar for Violet_82
0
159
Member Avatar for chdboy

I have a form in which I have made File no =field which displays(From sql database) the Integer value like 1-2-3-4 and so on. I want that ,when I save a form which has file no 1 ,and then after when I want to save the next record it should …

Member Avatar for chdboy
0
2K
Member Avatar for Benjamin_4

i want to populate my jtable with selected items in my jcombobox below is the code i wrote to perform the action but it does not. please am still new in java so i will appreciation the help. if(AssetCategories.getSelectedItem() == "LAND & BUILDINGS"){ try { String sql = "SELECT Description …

Member Avatar for mKorbel
0
205
Member Avatar for sterno68

Hi all This is what the problem is and I believe is wrong Financial application: computing future tuition) Suppose that the tuition for a university is $ 10,000 this year and increases 5% every year. Write a program that uses a loop to compute the tuition in ten years. Write …

Member Avatar for JamesCherrill
0
558
Member Avatar for 117

Hello, I have worked on a project to make a custom-like Internal Frame. There are also other classes which extends it, instead of JInternalFrame. The project works quite good, but there is a problem. The discription of how the JPanel window works: _______________________________________________________________ There is a main JPanel which contians …

Member Avatar for JamesCherrill
0
280
Member Avatar for bostondevin

I have two instances of Tomcat running on my server. I'm in the process of getting them to run as Windows Services (using the services.bat file in the bin - making sure the two service names are unique) and i'm getting stuck getting the second instance to work as it …

Member Avatar for stultuske
0
258
Member Avatar for KhubaibQaiser

I want to know how can i use a servlet to generate a table (time table for example) dynamically in a jsp page? The result should come between header and footer inside a div (see the picture) http://img191.imageshack.us/img191/8942/nbo6.png <html> <head> <title>Time Tables</title> <link href="default.css" rel="stylesheet" type="text/css"/> </head> <body> <div id="header"> …

0
124
Member Avatar for Benjamin_4

below's code is a code i wrote to get the value of 'monthly Depreciation' when i select the row on my jTable by either mouse-clicked or key-pressed. but it only selects the first value for 'monthly depreciation' when i click on the rows or key-press.the problem i know is coming …

Member Avatar for mKorbel
0
276
Member Avatar for java_programmer

I am trying to develop an application where user will upload a file from screen, the file will be processed in server side. I am using Adobe Flex for UI, Spring 3.2 as middleware and Java 5. I can successfully upload the file and in server side can get the …

0
155
Member Avatar for asif49

Class A private X x; public Method(X x) { this.x = x; } public void stuff() { Method2 m2 = new Method(); m2.doThis(x); } Class B public Method2() { } public void doThis(X x) { X copyOfX = x; // MAKE CHANGES TO copyOfX here } What happens is. When …

Member Avatar for JamesCherrill
0
149
Member Avatar for lauraroxi

Hello! I have to implement a Java project using Session Java. Do you have any idea from where should I start and what exactly implies Session Java?

Member Avatar for stultuske
0
83
Member Avatar for manel1989

Hi everyone I'd like to know how I can fill a matrix [n] [m] from a vector of size n * m Thank you very much every one

Member Avatar for jackmaverick1
0
251
Member Avatar for ChPravin

Hello All, Is there any way to add a text file while creating an executable jar file in eclipse? Regards

Member Avatar for devin.mcknight.102
0
8K
Member Avatar for anestistsoukalis

I would like to make clearly that i do not ask somebody to write the code for me. This is useless for me and also annoying for you: I have to do the following task. Create a Java Frame for some functions in my java project. So here is the …

Member Avatar for JamesCherrill
0
263
Member Avatar for sasikrishnasamy

Hi, I would like to know which closing and which if statement is more advisable and why below mentioned conditions. Condition1: while(iterator.hasNext()) { roDetailsVO = (RODetailsVO) iterator.next(); callableStatement = connection.prepareCall("{call testpac.test(?,?)}"); callableStatement.setInt(1, roDetailsVO.getInboxHdrId()); callableStatement.setInt(2, roDetailsVO.getUserId()); callableStatement.close(); } OR Condition2: while(iterator.hasNext()) { roDetailsVO = (RODetailsVO) iterator.next(); callableStatement = connection.prepareCall("{call testpac.test(?,?)}"); callableStatement.setInt(1, …

Member Avatar for aruru49
0
121
Member Avatar for Hanyouslayer

Ok, before everyone gets mad at me for not looking around the board for these topics, I have, but they weren't my problem. My problem I am having is calling the Polynomial class. I know how to call classes in a different class, but this is a bit different. I …

Member Avatar for JamesCherrill
0
1K
Member Avatar for malkani.ji.73

Please help to create a driver file of the given code becoz i dont know what should i do to create a driver file. import javax.swing.*; class Product{ private String PId; private String PName; private String PPrice; private String Pcategory; private String PQuantity; private String PDescription; public Product(){ PId=null; PName=null; …

0
211
Member Avatar for nathaniel23456

Here is my code import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { String[] name= new String[10]; int[] mark=new int[10]; int n=0; System.out.print("#Number of students: "); try{ BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(bufferRead.readLine()); } catch(IOException e) { e.printStackTrace(); } for(int …

Member Avatar for stultuske
0
217
Member Avatar for enakta13

Hello, I am currently struck! I need a way to stop an already ongoing process by a button, using another button. Explanation:- 1st Button Action private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { . . some actions which is a ongoing running (for ex: timer countdown) . . } 2nd Button Action private …

Member Avatar for stultuske
0
373
Member Avatar for nasaha

please help me as i m new to java i want to write a java code for Caesar cipher. the instuctions Cryptic This class h0as only class methods that encrypt and decrypt a String with a Key. The encryption and decrypting is done by using the encode and decode method …

Member Avatar for stultuske
0
139
Member Avatar for Layki

Hello everyone , I'm trying to update an existing Excel file(.xls) and add some rows in it . I already can open an xls and display it in a jTable, but i want to add rows to a specific sheet that i choose in a combobox . My xls have …

Member Avatar for JamesCherrill
0
340
Member Avatar for hhenali

#include<iostream.h> #include<conio.h> #include<string.h> #include<stdlib.h> // define maximum number of patients in a queue #define MAXPATIENTS 100 // define structure for patient data struct patient { char FirstName[50]; char LastName[50]; char ID[20]; }; // define class for queue class queue { public: queue (void); int AddPatientAtEnd (patient p); int AddPatientAtBeginning (patient …

Member Avatar for kal_crazy
0
1K
Member Avatar for ghfeyn

Hi everyone, I am having trouble with getting output from the console onto a file, for example a .TXT. I suspect that I have to make use of the System.out function, but I can't quite figure out how I might use it. Thanks for the help

Member Avatar for JamesCherrill
0
6K
Member Avatar for nathaniel23456

Ok basically i have the expected output. I have tried part of the code however i am confused as to how i am meant to input the students name and their module mark. Example Input: Commentary: A N Other The Students name 50 Their module mark B N Other The …

Member Avatar for stultuske
0
101
Member Avatar for malkani.ji.73

Aoa... i m new to java.. please help me to correct this program given blew. it shows error of illegal start of esxpression.. how could b it seems as correct program please help me.. thanks alot **error: illegal start of expression JOptionPane.showMeassageDialog(null, "ID: " + ID + "name: " + …

Member Avatar for stultuske
0
257

The End.