35,618 Topics

Member Avatar for
Member Avatar for bharatshivram

hi i have written a small chat application.. gui created using frames.. both can send text to one other using socket programing over the localhost.. is it possible to send files too along with just text?? Pls help Regards, Bharat Shivram

Member Avatar for JamesCherrill
0
95
Member Avatar for mahesh parmar

[code] <%@page import="java.util.*"%> <%@include file="mycon.jsp" %> <% String[] weight = request.getParameterValues("weight"); int[] a = (int[]) session.getAttribute("qarray"); int[] b = (int[]) session.getAttribute("qnarray"); double nweight[] = new double[500]; char cat[] = new char[50]; char cat1[] = {'a','b','c','d','e','f','g'}; char cat2[]={'k','l','m','n','o','p'}; int n = 0; int count = 0, k = 0; double sum …

-1
47
Member Avatar for kaluxx

hello we use the class io.*; in our college we use in a unix platform which is import io*.; i am trying to code a code so taht i can get a string input i tried ConsoleInput.readString, and also ConsoleInput.readLine() but still i get an error it says that readString …

Member Avatar for masijade
0
102
Member Avatar for java-utm-stg

hi We are creating a program for class which will take keyboard input and then get the instructions from that basically there could be as many as 4 instructions currently I am doing the following [code=java] System.out.println("Enter Input: "); humanInput = br.readLine(); StringTokenizer humanInputBrokenUp = new StringTokenizer(humanInput, " "); if(humanInputBrokenUp.nextToken().toString().equals("exit")){ …

Member Avatar for VernonDozier
0
79
Member Avatar for suncica2222

I have array of 10 JFrames instanced and I want to kill 3 or 5 or n if them,but not all!!! how should I do it? and where? in constructor or in main...? [CODE]public class KlasaMrdanje extends JFrame { public int kontrola1; public KlasaMrdanje(int kontrola) throws Exception //KAKO DOBRO SA …

Member Avatar for Xhamolk_
0
91
Member Avatar for daxxin2002

I have corrected a few errors,the code compiles and excutes for sure. how do one convert a truth table to boolean equation,I can convert the other way round like below; //Suppose Z = (A.B + C)' public class Boolean { public static void main(String[] args) { int a,b,c,z; System.out.println("A B …

Member Avatar for sammynove
0
658
Member Avatar for farooq82

I doing my University assignment. I need help for accessing html option button values using Java Servlet. Any help in this regard. [CODE] <html> <head> <title>Result</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <h3> Select one option for each MCQ</h3> <form method="get" action="http://localhost:8084/MCQs/Webapplication1/src/java/serverlet"> <table width="730" border="0"> <tr> <td> <strong>1. Java is …

Member Avatar for peter_budo
0
113
Member Avatar for Logi.

Hi there, I'm working on a UI for a program ive been writing for the past few weeks and have encountered a problem getting my windows to pass input control.. My main program runs in a window which extends Canvas and implements Keylistener and is opened by: [code=java]MainWindow myWindow = …

0
66
Member Avatar for titosd

Hello, I have a problem with this method: [code=java] public boolean addRaceDrivertoTeam(String driverLicenseNumber,String nationality,String constructorName, String fullName, Date dateOfBirth , int worldChampionships, int totalScore, int highestRaceFinish){ RaceDriver driver = new RaceDriver(driverLicenseNumber,fullName,nationality, dateOfBirth,worldChampionships,totalScore, highestRaceFinish); Constructors con; con = Constructors.valueOf(constructorName); RaceTeam team= new RaceTeam(con); if (driver.getRaceDriverKey()!=null) if (raceTeam.containsKey(con)&&(driver != null) && !team.isDriverExists(driver)){ …

Member Avatar for titosd
0
127
Member Avatar for suretd

Good Day All, I have a problem with a database program. The program is to create a database for a Stocktracker program. The details for the code, I got directly from our textbook, and it compiles perfectly, but as soon as I run the program it gives me the following …

Member Avatar for suretd
0
130
Member Avatar for v_sriram

Hello everyone, I have been trying to launch my JSP web application using Tomcat using my laptop as the server, with little success. I have registered a DNS at dynDNS.com ( free DNS, anyone!), made my IP static, forwarded port 8080 and port 80. The only problem I believe is …

Member Avatar for v_sriram
0
327
Member Avatar for KimJack

Hello all, I am trying to display time in the following format that represents hours and minutes: hh:mm [code] public String getTime() { String time = String.format("%tI:%tM", hours, minutes); return time; } [/code] For some reason I keep getting the following error: "The method format(String, Object[]) in the type String …

Member Avatar for Xhamolk_
0
197
Member Avatar for trickx0729

Hey guys, [INDENT]I just want to know if its possible to code a java program that will automatically logs you on your online accounts (e.g. such as yahoo mail, facebook, gmail, multiply, or even in this site) using your own username and password you use to register on such accounts. …

Member Avatar for PhiberOptik
0
666
Member Avatar for leverin4

Picture 1 down below is of a Maze program I wrote as it looks when you open it. Picture 2 is the same Maze after the program finds its way out. I want to alter the code so the program adds each blue spot one at a time as it …

Member Avatar for VernonDozier
0
241
Member Avatar for Majestics
Member Avatar for Majestics
0
118
Member Avatar for BestJewSinceJC

Ok, as I mentioned to Ezzaral, I'm working on learning Eclipse RCP but it is pretty hard to find good resources. I've found one good resource but it was written in 2006 and I'm really looking for some up to date online tutorials or resources using Eclipse Ganymede. Does anyone …

Member Avatar for BestJewSinceJC
0
104
Member Avatar for fwso

Hello, everyone! I will graduate in this month, and I have contracted with a software development company as a Java Programmer. I am, however, wondering how could I become an excellent Java programmer! I need some suggestions on: how to improve my development skills? what kind of book or journal …

Member Avatar for peter_budo
0
320
Member Avatar for tomata2

this is a code for my project ,the project is In the beginning of the program, the users will choose either to create the road by them self by entering the speed of the car, the lane in which the car is moving and the position of the car in …

Member Avatar for VernonDozier
0
104
Member Avatar for wrigha

I need to write a applet that displays between one and three figures that walk across the screen at different speeds form left to right. I have one figure walking across the screen but can't seem to get figure two or three to work correctly. This is what I have …

Member Avatar for VernonDozier
0
104
Member Avatar for kashn

Hi, I'm using 2 JButtons on my JApplet. The thing is that, the buttons do not show up until I roll my mouse over them? The regular Button works, this problem only occurs with a JButton... I only want to use the JButton because I need set a image button …

Member Avatar for kvprajapati
0
50
Member Avatar for sexycancer1973

I have to write a GUI based quiz game in Java, but I have no idea how to use the following code to finish the program. The questions and answers are in a text file. Please help!!! [code] public class QnA { //index of correct answer when calling the getAnswer() …

Member Avatar for sexycancer1973
0
132
Member Avatar for Intrade

I'm trying to figure out how to merge to full, complete binary heaps if their heights differ by more than 1. For example, a heap with 7 elements merged with a heap with 31 elements, etc. Here's my Java Code for the problem. I can't quite figure out what I'm …

0
78
Member Avatar for mahdi68
Member Avatar for Lensva

need some guidance on how to make JTable look something like this: [img]http://imgkk.com/i/pQTxSCQf.jpg[/img] so far on searching i'v found nothing concrete and what i have found is scrambled between multiple .java and hundreds of lines. not readable to me. what/where should i look into that would provide me a skeleton-like …

Member Avatar for Ezzaral
0
85
Member Avatar for shakeelahmed22

I need to write a program to print the below pattern of * representing the alphabet X. I am unable to print an X using asterisks in the post. I hope you can understand the below explanation. The X should have 7 rows - with three rows at the top …

Member Avatar for freelancelote
0
145
Member Avatar for redZERO

Hi guys, I am using boolean variables as flags in a program and i want to be able to invert the value. for example if the current value is true, then it must be changed to false; doesn't matter if i don't know what the current value is.

Member Avatar for redZERO
0
437
Member Avatar for pradeepktg

Hi All, I guess, its really hard to check if a selected file(html file control) exist in the same location(local system) using javascript other than using FSO. I would like to know is it possible to check using ajax and jsp,checking after submitting the form. If yes, pl.send me the …

Member Avatar for pradeepktg
0
273
Member Avatar for localp

I am an absolute beginner in JAVA, i want to know how to upload and save an image in a prescribed folder. sorry, i tried my best to search for this in the net, but i couldn't find any related to this, and also i do not have any sample …

Member Avatar for peter_budo
0
140
Member Avatar for Lensva

Class A has a MouseMotionListener which updates cursorLocation every time its called; Class B extends A. the idea is to make B's lastSelected update once cursorLocation is updated and println the new coords. i thought paintComponent could be used for that but im sure theres something obvious im missing: [code="java"]import …

0
61
Member Avatar for shakeelahmed22

Please help me in the below program Write a class named 'Stack" that has two methods named 'push' and 'pop'. The class has the following members: Member variables : int array [] int n ------------------------> size of the array int top Constructor : to initialize n, array and top. Member …

Member Avatar for javaAddict
0
166

The End.