35,618 Topics
![]() | |
So, I'm making a new game in Java. I am trying to add networking code. I'm using the code at [url]http://download.oracle.com/javase/tutorial/networking/sockets/clientServer.html[/url] but I want it so that when the player moves in my game, it updates their location in the server and then updates it to everyone on the server … | |
Hi Guys, I am a relative new member in this forum , My name is Javin Paul and I am Java programmer. I have question related to garbage collection in Java Does garbage collection occurs in PERM Area of Java Heap ? As per my knowledge PERM area is used … | |
...i'am quite confuse about event-driven programming in java applet... ....i have been using a "TextField" for creating an applet that would require a password ... ...my goal is to make an error_message saying "SystemBlocked" whenever I entered 3 wrong passwords and would terminate the applet at the same time... ...how … | |
Hi! I would like to make transparent my two JScrollPane components. Could please someone explain me why the code [ICODE] scrollPane1.setOpaque(false); scrollPane2.setOpaque(false); imagePanel.setOpaque(false); beads.setOpaque(false);[/ICODE] does not work? Thanks! [CODE] public SelectablePanel() { beads = new BeadsCollection(NR_OF_BEADS); imagePanel = new ImageSelectionPanel(0, NR_OF_BEADS_SIZE); p = new Point(); JInternalFrame jif = new JInternalFrame("Title", … | |
Hello, I am new in J2ME, I have created one application which stores Name, Qty, Price and Total. I can manipulate RecordStore in this application. Now, I want to send this data to some other Remote Place, i.e server or through SMS. Is there any way to do this? | |
Hello guys! I just want to ask if how can I use java file reader? I badly need this for my program... Thank you in advance! :) | |
- (The [COLOR="Red"]Fan[/COLOR] class) Design a class named [COLOR="red"]Fan[/COLOR] to represent a fan. The class contains: 1. Three constants named SLOW, MEDIUM, and FAST with values 1, 2, and 3 to denote the fan speed. 2. An int data field named speed that specifies the speed of the fan (default … | |
hi frnds, i completed mca 5th semister. now i want to do a project on java. could any one help me what are the current best projects on java? | |
I am currently working on a project in which I need to check the similarity between images... I have started of trying the cosine similarity.. the formula available online needed to be modified since it was only for text and in images the 1st pixel of one image will have … | |
Tires don't have to have exactly the same pressure. Modify the program for exercise 2 so that the front tires can be within 3 psi of each other, and the rear tires can be within 3 psi of each other. Input right front pressure 35 Input left front pressure 37 … | |
[B]Hi everyone I would like to take your advice about my situation This is my second year in university and my major is computer science and my programming skill is very weak:'( and I finish data structure by Miracle :icon_cry:and until now I can’t solve any assignment by myself:icon_sad:, so … | |
if i want two submit buttons ok1 and ok2 if the user click ok1 control goes with 1.jsp or click ok2 control goes with 2.jsp but ok2 is not working. is there any mistake two submit buttons then what are methods to resolve my code is here [code=html]<html> <head> <meta … ![]() | |
Hey all, I have been working with this for about 4 days and pulling my hair out. I can't figure out why I am getting the error messages in my code, when I compile. Here is my code. [CODE]// Week3 Dwight Welsh import java.text.DecimalFormat; public class Mortgage { public static … | |
/**This program is a simple number guessing game using the random class */ import java.util.Scanner; import java.util.Random; public class numGuessing { public static void main(String[] args) { Scanner input = new Scanner(System.in); Random rndm = new Random(); int num = rndm.nextInt(50); int numGuess; System.out.println("Please try to guess a number 1 … | |
hi, I am new here... I am currently facing some trouble in pulling out the Attribute as in its types and names. My program purpose is to read the Java file and display all the String into tokens. Then, it must be able to pull out the class name, attribute … | |
Hello every one, is it possible to get files from a file list display with System.out.println. I mean for example if you code something like: System.out.println("file.getName"); Then you get a file list. After how could we use this file list to for example copy or move or anything else with … | |
ok so the program gets a list of numbers, and it counts how many times a number is entered. [CODE]for(int i = 0; i < numList.size(); i++){ for(int j = numList.size() - 1; j > i; j--){ if(numList.get(i) == numList.get(j)){ count++; numList.remove(j); } } System.out.println(numList.get(i) +" " + count); count … | |
I am currently working on this graph "thingy" were I am told to produce 4 types of graphs. [LIST] [*]y=x2 [*]y=x3 [*]y=x*sin(x) [*]y=x*cos(10*x) [/LIST] Now basically, I have the GUI/Interface ready. I seem to have a problem linking the [B]y=x*sin(x)[/B] button in the PlottingWindow class to the PlottingPanel where it … | |
Hi guys and girls(?), I have created a 2d turn based board game game like chess, in java but my problem is that I wanna add some kind of walk through or tutorial system to explain the controls and features of the game. I was wondering if anyone had any … | |
Hi, I need your help... I need to get the value selected by a user from the HTML page and pass this value into my servlet program for processing. So I did something like this: Part of my jsp code: [CODE] <select name="tool" id="tool"> <option value=kim>KIM</option> <option value=ontomat>Ontomat Annotizer</option> <option … ![]() | |
So I have started learning Java for my senior project at school and I would really like to make a tower defense game as my project. I have been looking for tutorials that would help but I am having trouble finding some. I have been using [url]www.javacoffeebreak.com[/url] and I've been … | |
Hello, i'm justarting out with OOP with Java and i'm looking for a bit of help with a bit of code as i can't quite work out why it wont work as i'm still learning. Here's what im being asked to do [I]write a public method called requestPositionsAndMove() which takes … | |
| |
Hi. Im having a difficult time to figure out how to connect all the claass and jsp as well as the .xml. (I am working on a web application project, and these codes are for the registration module oly. Im using ECLIPSE EUROPA for my IDE, Apache Tomcat 6.0 for … | |
Hello everybody, As i m beginner to Jsp/Servlet.. I want to Upload a image from client side and store it in MySql database then simultaneously display it. I need it urgently can anybody send me the code....... Please,..... Thanks | |
hi all, I developed j2me, android and blackberry based applications. I need to showing the demo for clients through my own website. Is this possible for showing the demo using micro emulator through my website?. For example user can choose the both type of mobile and type of application and … | |
Write a program that asks for your age in years, months, and days and writes out your age in seconds. Do this by calculating the number of total days you have been alive, then multiply this by the number of hours per day (24), the number of minutes per hour … | |
![]() | hi, I am working a program which needs to send an email through JSP. I get an error Could not connect to host : localhost :25 : Connection refused. error. Can anyone tell me what configuration i need to change in Apache Tomcat to use my server as smtp server.. … |
![]() | Hi everyone, I'm naive to javascript as well as JSP. I'm involved in a project where i need to code a web page similar to shopping cart type of thing. The user selection needs to be displayed in the same page dynamically using JavaScript and then after confirmation from the … ![]() |
Can you help me in this program java applet. this is a program that the user will input one letter in all the textbox.When you typed all the letters correctly you will click the button and will prompt accepted else invalid. The letters in every textbox is fixed: A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,,W,X,Y this … |
The End.