31,001 Topics

Member Avatar for
Member Avatar for eng_mary

hi every one suppose i have a Car class [CODE]public class Car{ [INDENT]int speed; int id; .. public void move(){ .... }[/INDENT]}[/CODE] and a Race class [CODE]public class Race{ [INDENT]int array[][];//contains car ids in race or 0 for none [/INDENT] [INDENT]Car cars[]; .... public void startRace(){ ... }[/INDENT] }[/CODE] if …

Member Avatar for eng_mary
0
174
Member Avatar for Majestics

I am making on-screen keyboard in java. All what i want to know is how to get focus into the notepad or any other typing point , I mean when i press a key it type it into the typing point like a keyboard do. If any one know any …

Member Avatar for Majestics
0
154
Member Avatar for Joncamp

I am trying to transmit an Image object through a Socket connection in Java. The only thing I may be missing is how to get an image size in bytes so I know how many bytes are being transferred over the Socket. I have the ServerSocket and Client working transferring …

Member Avatar for kvprajapati
0
4K
Member Avatar for keppy

Hi, I'm fairly new to java and am trying to write a form of banking system for a college assignment. At the moment I am trying to access the account number of the object userCurrentAccount with it's method getAccountNumber from the account class. This is where the object is created …

Member Avatar for kvprajapati
0
101
Member Avatar for sandeepdhankar

hi , i m new in java. i have 2 ques. 1. how to track Alt + s combination key in applet and 2.i need to send a image from applet to some url / servlet via http post. and display a progress bar showing the status of imge sending …

Member Avatar for BestJewSinceJC
0
56
Member Avatar for gstang95gt

I am new to Java, I am six weeks through a nine week class. I am having problems extending a class in my program. My assignment is as follows: Modify the Inventory Program by creating a subclass of the product class that uses one additional unique feature of the product …

Member Avatar for gstang95gt
0
159
Member Avatar for MasterOfDevil

Hi, I dont sure that I am posting the thread to right place. I want to test user bandwith over an application that installed to user's computer. There are online test tools , but I must I need java source code for implementing to our application. Can anyone help about …

Member Avatar for Gasper11
0
61
Member Avatar for sifah

i want to validate the String entered wether it is a valid standard equation of [COLOR="Green"]conics[/COLOR] the standard equation is: ax^2+by^2+2hxy+2gx+2fy+c=0 some variables can be missed in input string but it should be of "degree 2" equation

Member Avatar for JugglerDrummer
0
87
Member Avatar for bokz06

what im having trouble with is making an applet which has animates like the matrix code.. lines come down at random positions etc.. my lecturer said that it only takes 20 lines of code and is very simple. he gave us this info as a hint: [CODE]Use the random class! …

Member Avatar for Ezzaral
0
100
Member Avatar for apocalypshiit

Hi everybody, i just have a task from my teacher..and the task is to make the chatting application with java (GUI = Swing) that implement the multithreading and multicast socket. can you give me the resource or tutorial??!! help me please.... :)

Member Avatar for apocalypshiit
-1
71
Member Avatar for ndoe

sorry i can't found tread about voice recoder!! my question is how to recording voice with microphone and play recording with java swing/netbean and output from voice is save to hardisk!! thanks all

Member Avatar for peter_budo
0
139
Member Avatar for cathy dow
Member Avatar for JamesCherrill
0
80
Member Avatar for cathy dow
Member Avatar for stephen84s
0
77
Member Avatar for xQuasar

I'm making a game server which involves three servers; a CommonServer, which connects the LoginServer and the Gameserver. Anyways, I've got another source that's similar that I'm looking at but I must have done something wrong. I've been looking at it over and over again and the other source works, …

0
57
Member Avatar for suretd

Good Day, I have an Abstract Class, Student, which has two child classes, FulltimeStudent and PartTimeStudent. I use the class, Test, to test how many credithours each student has and how much financial aid each student is getting. My output requests that firstly, i enter wheter a student is Full-time, …

Member Avatar for BestJewSinceJC
0
270
Member Avatar for llemes4011

Hi, I'm kind of new to the world of streams in Java, and I was wondering - I have this Server/Client program, and I need to read Objects and Text streams. I tried making an ObjectInputStream, and a PrintWriter out of the Socket's InputStream, but when I tried to read …

Member Avatar for llemes4011
0
74
Member Avatar for brandongood

I am getting the error in the title of this post when I try to run my ColorFactory class. Can someone tell me where Im going wrong? Heres my code: [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class ColorFactory extends JFrame { //Fields of the class private JLabel messageLabel; …

Member Avatar for brandongood
0
410
Member Avatar for tummalavishwana

Could any one you help me in resolving this issue. I want to write the content to a file line by line. I have done the following in my java class. I have to append the some content into an xml file. For this I am reading an xml file …

Member Avatar for kvprajapati
0
93
Member Avatar for bokz06

im having problem setting values into a String array.. it must be with a setter method (yes this is homework). i have created a Person class which u can set name, age, gender and then i created a Teacher class which extends person and further allows you to set ( …

Member Avatar for bokz06
0
6K
Member Avatar for ashokrajendran

Hi all, I'm doing the project, in which i'll get a string as response from the server. That string contains the xml content. I need to parse it and extract the required value of the xml tags... i have no idea about this, Kindly any one has a code to …

Member Avatar for kvprajapati
0
107
Member Avatar for javaman2

hello again everyone to pick up where i left off, i took the advice of a member and split my poker game up into different classes which i will post below 1)i need help with two errors in the poker class which i have commented out as compiler error messages …

Member Avatar for JamesCherrill
0
505
Member Avatar for stewie griffin

Hi I am using jmf to build some music player and im want to add some equalizer that will "jump" up and down according to the music, how can I do it?

Member Avatar for kvprajapati
0
120
Member Avatar for mdharooonkhan

hello friends , i am searching job and put 5 projects and i am finding difficulty in explaning the current project so please can anybody tells me how to explain the project ,i mean how to start explaining and what should i explain .please its really urgent i am finding …

Member Avatar for ithelp
0
100
Member Avatar for gstang95gt

I am new to programming and have a question regarding a homework assignment. First off this is for an Inventory Program and it is part 2. The assignment is as follows: Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The …

Member Avatar for gstang95gt
0
139
Member Avatar for nishant52

I'm developing a Java application where I have to implement Shortest path algorithm (dijkstra's). I've stored the details of nodes in database. But my problem is that the number of nodes is very large (1000+) and taking all the nodes into consideration will increase the time and space consumption of …

Member Avatar for VernonDozier
0
114
Member Avatar for k8lj

Question 1) Define a class for Rectangle objects defined by two points, the top-left and bottom right corners of the rectangle. Include a constructor to copy a rectangle, a method to return a rectangle object that encloses the current object and the rectangle passed as an argument and the method …

Member Avatar for JugglerDrummer
0
147
Member Avatar for SnagglezMaw

I have a large file to read to get the data out of the columns. File size varies, but is usually around 1000 to 3000 lines. What I need to do is pull the data(numbers) from column 3 ONLY if the number in column 4 of that same line is …

Member Avatar for SnagglezMaw
0
78
Member Avatar for jin83

Note, some of the code could be hard to understand as a bit is in Swedish. Hi! I am trying to learn some sql/java. I created some tables in an sql-database, and a java-program to access and modify the tables. I am not that experienced in programming so I might …

Member Avatar for kvprajapati
0
103
Member Avatar for palavi

log.info("Able to establish mail session"); props.setProperty("resource.loader", "class"); props.setProperty("class.resource.loader.class", "org.apache." + [CODE]"velocity.runtime.resource.loader.ClasspathResourceLoader"); props.setProperty("file.resource.loader.path", "/"); Velocity.init(props); Template template = Velocity.getTemplate("MarketingAlert.html"); log.info("Able to find Template."); VelocityContext vContext = new VelocityContext(); vContext.put("url", url); vContext.put("userId", createdBy.toUpperCase()); vContext.put("appName", applicationName); vContext.put("custName", customerName); StringWriter writer = new StringWriter(); template.merge(vContext, writer);[/CODE] IM working on enhancement...im getting the below exception: …

0
51
Member Avatar for Virux

So, I have plans for a chat applet. I have only flowcharts and drawings of what I plan to do. Right now I'm creating my own HTTP server to deliver the applet, which is working nicely. Now I'm trying to find some stuff I want to add to the applet. …

0
59

The End.