36,051 Topics

Member Avatar for
Member Avatar for Pytho

Hi I'm developing a game that includes a chat room for four people. All the programs must be the same, I don't want one server program and three clients. Here's what it should do [LIST] [*]Someone creates a chat and invites three more there [*]The chat starter will become the …

Member Avatar for NormR1
0
97
Member Avatar for Neo_cse

I am working on a project on online e-commerce website.My requirement is that when a user clicks on "Add to cart" option some queries will be sent to the database and no redirection will take place.how to do this using jsp.(I don't know javascript).

Member Avatar for javaAddict
0
99
Member Avatar for crazyIT

hello am experiencing two problems: 1) am getting this error and i do not know what it means: Hello.java:1:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘java’ 2) how do i get the header file javaCompilor.tab.h, i already have a javaCompilor.tab.c file

Member Avatar for NormR1
0
94
Member Avatar for nsyncpilu

Hy , I have a problem with the TableModelListener , my application should print out the cell were the content has been modfied but it does notheing. Here is my code. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.table.*; import javax.swing.event.*; /** * * @author Pilu */ public class Afisare …

Member Avatar for nsyncpilu
0
464
Member Avatar for rnalh5gh

[B]How to write a JSP program accepting a single parameter?[/B] If the parameter passed is “A”, it will generate an HTML of calculator A. If the parameter passed is “B”, it will generate an HTML of calculator B. I know how to write a calculator program in HTML format but …

Member Avatar for Shanti C
0
96
Member Avatar for cse.avinash

Can You Please help me where I am getting error.. :( I am using NetBeans and MicroSoft SQL Server 2005. [B]HTML CODE[/B] [CODE]<html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <form action="movie.jsp" method="POST"> <p><strong> List Of Movies:-</strong>s</p> <select name="moviename"> <option>powe</option> <option>ghi</option> <option>xyz</option> <option>Troy</option> <option>poer</option> <option>abc</option> <option>pqr</option> <option>qwe</option> <option>ghj</option> <option>RA …

Member Avatar for masijade
0
189
Member Avatar for quinnifir

Hola. so, im making a simple program right now to work on my java skillz, and just for fun in general (im pretty new to java). so, i was wondering, whats the fastest way to find the maximum number in an array of STRINGS. because i tried parsing the ints …

Member Avatar for quinnifir
0
129
Member Avatar for reemhatim

I'm doing a small GUI program it is that I have two buttons when I press on any of the buttons it displays a dialog box saying which button I pressed .One of the buttons is a text with image displayed on it . my problem is that an exception …

Member Avatar for reemhatim
0
159
Member Avatar for kalz

Hi I am working on a personal project for a friend of mine.The requirement is to display the data fetched from a hand held device namely the product barcode and the quantity.I have followed the manufacturers guide and have flashed the device with a sample program that records the barcode …

Member Avatar for kalz
0
126
Member Avatar for ARaza110

Hello, Can anyone please tell me how to divide a 3D Cylinder in equal parts. A Cylinder has three fields as defined in the API, TOP, BODY, BOTTOM. I have divided my cylinder in these parts. Now, i only want the Cylinder.BODY (i mean the surface of the cylinder) to …

Member Avatar for mKorbel
0
149
Member Avatar for jtodd

Hey guys. I am trying to sort a list that has been populated using a random number generator. I am trying to use collections to sort the list but I am not have any luck. I have been stuck on this for a while and would greatly appreciate any help …

Member Avatar for jtodd
0
156
Member Avatar for stevanity

Im building an application to store and manage Student Marks and Im gonna use Java Persistence (JPA) to do the Database work for me. So Ill be retrieving the data from the database into Objects. And then Ill want to display the Data in the objects as a JTable. And …

Member Avatar for stevanity
0
146
Member Avatar for hamzamuradkhanh

Sir, i m developing a new web browser as my project in java.I have done the initial coding but when i run google homepage on my simple web browser,it shows me some html code online.how to get rid of this code?.i have also attach the view of this problem,plz look …

Member Avatar for teo236
0
183
Member Avatar for server_crash

I've created a jar file like this: jar cfmv Manifest.mf RoboPlot.jar RoboPlot.class ImagePlotter.class The manifest.mf file looks like this: Main-Class:RoboPlot For some reason, when I use this command to run it, java -jar RoboPlot.jar it tells me that the main class could not be found I also tried this: Manifest-Version: …

Member Avatar for stultuske
0
222
Member Avatar for sam1

hi you know I'm doing a project on java instant messenger. I was thinking how would i implement it. should i use a seperate class for each component of the messenger. for example one class for its gui, one class for its chat diaglog, one for it jtree panel(to show …

Member Avatar for stultuske
0
462
Member Avatar for Dhanesh10

hello friends, i have two frames suppose A and B, when i open or make visible frame B from frame A by making a new object of frame B, I make invisible frame A by " [COLOR="Red"]this.setVisible(false);[/COLOR] " when i done with work in frame B, i need to close …

Member Avatar for Dhanesh10
0
119
Member Avatar for hatebin

Hello. Like as the title sayes. Im trying to edit key values in a Map/hashMap/treeMap. For example: [CODE] public class MapExample { public static void main(String[] args) { Map<int,String> mp=new HashMap<int, String>(); // adding or set elements in Map by put method key and value pair mp.put(12, "Two"); mp.put(11, "One"); …

Member Avatar for NormR1
0
195
Member Avatar for marekbar1985

Hello everybody, I'm developing my program and I need to send over network encrypted data. I can do this but when I call method responsible for decrypting I receive null. It seems that there's something missing in my code and I don't know what.Let me show you my code: [code=java] …

Member Avatar for JamesCherrill
0
118
Member Avatar for desert564

the following program is to print all possible sum combinations of a number for example 6=1+5,2+4,3+3,1+1+4,1+2+3 12=3+9,4+8,5+7,.......,1+1+2+3+5 but i m not getting any output...maybe there's a problem with proper ending of loops pls help[CODE]import java.io.*; public class sumpermutations { public void main()throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int input,i,j,d=0,s=0,num=0,d1=0; …

Member Avatar for NormR1
0
257
Member Avatar for Armanious

Hey, everyone. I'm just here to ask a really simple, quick question. Is [URL="http://www.betterprogrammer.com/"]Better Programmer[/URL] accurate in the sense that it truly tells you how good you are at Java programming? Also, I am 14 years old, and what would a score of 93% be (as in terrible, bad, average, …

Member Avatar for stultuske
0
103
Member Avatar for newcoder310

Hi, I've noticed that in eclipse when you give "Exception" and click on exception it is redirecting to that link.. But actually according to java even if we give keywords or anything inside quotations(" ") it shouldnt be considered right? So is this a bug in eclipse? Thanks

Member Avatar for JamesCherrill
0
88
Member Avatar for jpleas

I am in a Java Programming class and our instructor has just assigned us our 1st project. The project would not be a problem if I understood the Java Programming Language, from the beginning of my Computer Science Schooling I have yet to understand this code and now that I …

Member Avatar for javaAddict
0
498
Member Avatar for sirlink99

I am trying to make a snake program The code I currently have looks like this [CODE] import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.util.*; public class SnakeG extends JPanel implements KeyListener, Runnable{ private Vector<Point> snake = new Vector<Point> (5,2); private Vector<Rectangle> snakeRectangle = new Vector<Rectangle> (5,2); public void startGraphics …

Member Avatar for sirlink99
0
370
Member Avatar for yurixzach

Hi. I am new in using Eclipse IDE, Tomcat 6... I can't run even the simplest project (Hello World) because of the error about ports. I've already browse the internet and do the configurations but still my problem is there. I have no one to ask about eclipse other than …

Member Avatar for peter_budo
0
126
Member Avatar for mydreamgirl

I have unicode for Simplified Chinese. I would like to send an email with Chinese subject and content. The content works fine-which converts unicode to Chinese, however the subject alwasys shows unicode instead of Chinese. Can anybody help? Enclosed you can see a part of my code: [code] session = …

Member Avatar for mydreamgirl
0
1K
Member Avatar for presley tonde

am about to start software engineering but am not sure of a better programming language to take..help

Member Avatar for Zaad
0
98
Member Avatar for domifa621

I know this may be easy to many of you but it hasn't been so for me. I want to apply some exception handling in this simple code. My instructor skimmed over this. If I were in the world of visual studio I would have applied some isNumeric, and some …

Member Avatar for domifa621
0
172
Member Avatar for HeyJoey

I've been trying to get this to work. It complies but my char array won't display anything. 'cipher2.in' contains this: 3 L E ABCDEFGHIJKLMNOPQRSTUVWXYZ Output: Cipher Code: Cipher Text: ABCDEFGHIJKLMNOPQRSTUVWXYZ Cipher Key: 3 [CODE]import java.util.*; import java.io.*; public class Test2 { public static void main (String[] args) throws IOException { …

Member Avatar for hfx642
0
231
Member Avatar for chixm8_49

I would like to know what "Invalid Stream Header : 61646F62" means? It happens when I run my program. Thanks. :)

Member Avatar for chixm8_49
0
214
Member Avatar for kujta1

i want to make an application with JAVA in which there are registered users. so users can put data in database, can see data from database. my application is there are different doctors from different places and they have common patients( clients) that they care about patients. so they want …

Member Avatar for JamesCherrill
0
85
Member Avatar for sirlink99

I am trying to make a snake game and I am wondering how I could get an element of an vector and then use the number for the y coordinate like when using ararys lets say the x element I am using is 3 then I could type in arrayY[3] …

Member Avatar for mKorbel
0
133
Member Avatar for sirlink99

I am making a simple game and I cant seem to get the line to center. I would like it all to be in a column and centered. I have this line of code that is not centering [CODE] JLabel numberOfChangesLabel = new JLabel("" + totalChanges); pane.add (new JPanel ().add(numberOfChangesLabel)); …

Member Avatar for sirlink99
0
202
Member Avatar for hfx642

I have a few JSpinner(s) and I'm trying to change the button sizes. I know how to change the font of the SpinnerModel(s), but not the button sizes. Can someone please point me in the right direction? TIA!

Member Avatar for hfx642
1
1K
Member Avatar for FALL3N

Hello. I am trying to input the name of a class that I have imported already, and can instantiate regularly, such as 'myClass inst = new myClass('foo');' and create a new instance-object of that class. The code below illustrates my question more specifically: [CODE] import java.lang.reflect.*; import java.io.*; public class …

Member Avatar for NormR1
0
382
Member Avatar for vomhaus

I posted this out here yesterday and received several great responses using an ArrayList. During a code review it was suggested that a use a List<Sting> for the reusultset. Any Ideas would be welcomed. Thank you for all of your responses yesterday... [code] public List<String> getAnswers() throws DAOException, SQLException{ //This …

Member Avatar for stultuske
0
4K
Member Avatar for real thinkers

I want to make a program that find the alphabets present in the string using java language. e-g i hava a string " Hello World " It display me that charactes present in it are H e l 0 w r d It count a character only once.

Member Avatar for Ezzaral
0
228
Member Avatar for Jessurider

i've created a database project in java in which a jtable is used to display the contents of the database.......i've also created an option for insertion of values through a textfield by button actionperformed into the database ......and now when i inserts a particular values through the textfield and when …

Member Avatar for murali_quest
0
201
Member Avatar for sasneb

Hi, I am stuck with few problems related to JSP - Java applet file write and database connectivity issues. 1) Calling the applet class from JSP works in the web browser. But the file write code written in applet does not work when called from JSP ( It works if …

0
51
Member Avatar for conanzz

I want to update 0X0 when I press of the "AC Milan" to be "1X0" and the last scorer also to be updated with the winner; Also, how to fix the alligenment to the center >>! [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TestSwingListeners1 { public static void main(String[] …

Member Avatar for mKorbel
0
299
Member Avatar for Majestics

I have connected java with oracle and providing the facility of accessing data on the lan... I have also open a port, but still my java app over lan start very slowly after that it speed up, but at startup its very slow Y? Thank you for any suggestion

Member Avatar for Majestics
-1
75
Member Avatar for Dean_Grobler

Hello there, I'm busy working on a project using GWT and Sencha GXT libraries. I have come to this stage that I now have to populate a tree with data received from an XML file... I have no idea how to do this, I've gone through the javaDocs but it …

Member Avatar for RicardoE
0
180
Member Avatar for ravi_91

please can any one suggest me the code for how to upload and retrieve the image(blob) into oracle database using jsp plzzz plzzzz

Member Avatar for ravi_91
-1
66
Member Avatar for nsyncpilu

Hy again , I have another problem now , I have an application with a jTabel , you can double click a cell and you can change the value that is inside it , after you changed the value inside the cell and hit enter the value i enterd remains …

Member Avatar for nsyncpilu
0
1K
Member Avatar for jsook724

Hi everyone. I am trying to make a batting average calculator, but i am pretty new to java. I want to make it look like this: [url]http://www.kll.org/batting-average.htm[/url] All i have right now is JOptionPanes, and it works, but it doesnt look very nice. So i know i need to put …

Member Avatar for NormR1
0
307
Member Avatar for willywhomperz

I am new to Java and could use some help. Trying to write something using scanner or a JoptionPane to convert inputs from Gregorian to Julian. Then use interface to convert it the other way. How do I start and what do I do?

Member Avatar for NormR1
0
111
Member Avatar for charchar88

I believe this is similar to the dining philosophers problem but a little different and somewhat easier. [url]http://en.wikipedia.org/wiki/Dining_philosophers_problem[/url] Basically I have a barrier class and a waitingThread class. I need to create 4 threads. Each thread is meeting at a place to "eat". But none can begin "eating" until the …

Member Avatar for charchar88
0
154
Member Avatar for vomhaus

I developed a method to query a database and return the specific values that I'm looking for except that the value being returned is the last value. In my while loop I can do a system.out.println(answers)and I can see all of the values, my return answers only returns the last …

Member Avatar for murali_quest
0
105
Member Avatar for yatin.baraiya

Hy all Currently i have one JSP which useful to execute the select query.... when i use this jsp for execute the select query in another computer's database if table having less record [less than 200 raw] it will give me result.... but if table having more than record [rows>200] …

Member Avatar for Brillig
-1
124
Member Avatar for jagadeeshkumar

i am new to java i hava saw error that illegal start of error in this program [CODE]public class double { public static void main(String[] args ) { double d=1232.44; System.out.println("the double value is :"+d); }}[/CODE] please help me

Member Avatar for Donnovan
0
85
Member Avatar for manjupargavi

The End.