32,204 Topics
| |
Hi, [B][I am experienced][/B] I would like to create a virtual 3D world. I am familiar with SDL and 2d graphics programming. I am experienced with C++ and I know a little Java (I have enough programming experience to learn a language quickly). I am familiar with the traditional game … | |
I need help to write this code of java for a lotto game . ANd I dunno how to do anything pls help. Its Due in 2 days. Can someone write this code for me . The pdf file is the instructions The lottoprogram file is wher i have to … | |
Hello, I'm trying to get my first RMI Program working, and I keep getting a Timed out exception. I believe that the error is occurring in the "bind" method... Does anyone know what the problem might be? Here's the code and the error: [code=Java] /** Server */ import java.rmi.registry.Registry; import … | |
Hello, for the project I'm working on, I need to be able to access say, a JPanel object that was created from the execution of a Jar file, and use it inside another class outside of the Jar file. Any ideas? Thanks | |
I am writing some code which already gets the pixel array from an image, I then alter the pixel values. How do I now display this new pixel array as an image? I hope someone can help. Thank you | |
hi , i m looking for a project which contains some graphics,lots of functionalities, and most of all is something different from the normal management projects (online test,hote; or lib mgmt etc). I have thought of something related to "Stock exchange" or Artificial intelligence project(which can predict behavior of situations-"brainstorming" … | |
Hi, I am having issue with the Scanner class, it seems to fall through to the next line, depending on how I call it from my class. I cannot track find a pattern to this. Except it tend to happen more when calling the nextLine() from the Scanner class. Some … | |
Hi, I have one question. You know some applications can be minimized to the lower right corner and with a hot key (e.g. ctrl+F1). Once the hot key is pressed, the application is activated or some event is activated. I wonder how to do that in java if there is … | |
Good Day All, Not sure if I should post this request here or under the SQL Forum. I am studying JAVA and my code is for JAVA, but my query is regarding the SQL prepared statements to be used in my JAVA code. I have a program called SingleUser.java. The … | |
hi all java application which is made of awt and threads can be call from jsp is possible or not . i am having one application which is in swings and i want to call that application from jsp so that i can run or use this swing application in … | |
how can i print a triangle in java.Its shape is like this A B C D E F G H I J K L M N O i have to use ascii code for printing alphabets. | |
package javaapplication1; import java.util.*; import java.io.*; public class GO { public static void main (String[] args) throws FileNotFoundException { Scanner inFile = new Scanner (new FileReader("grades.txt")); PrintWriter outFile = new PrintWriter ("output.txt"); int q1,q2,q3,q4,q5; double g = 0; int ctr = 0; double ave; String name; double cAve; String grade; … | |
hi helper, i wanted to create web app without using any IDE and test in tomcat....where should i put my class files and jsp files and xml......what is manifest ? plz tell me directory tree structure thanks bean boy | |
This a portion of my code with 2 sets of 2d array [CODE] public class Form2 { public static void main(String[] args){ int[][] dayForm = { {25,15,28,17,19}, {31,21}, {23,24,19,18}, {15,19,22}, {14,17,13,18}, {8,12}}; int[][] boardForm = { {10,18,17,17,15}, {16,9}, {13,19,15,25}, {11,10,8}, {14,17,19,13}, {11,4}}; final int SIZE = 4; int[] totalday = … | |
Got a small detail problem that I cannot get to understand myself. The program, see attachments draws dots on the screen. There is a dot class for the details of the dots to be stored, that is size, colour, shape (square or round) Problem is with the colour...Cannot get other … | |
Edit: Title - java access denied on graphic file Edit: I didn't realize i didn't finish typing the title before submitting. I put my applet on the web but it says not initialized and the error is complaining about my graphic. Am i not allowed to have graphics? How can … | |
Hi I found a class ReadingPixels someone wrote on the net which given an image it dispays the x,y,r,g,b values as the mouse is over the image. I have a separate class I want to add the panel to. I can add the panel to my frame however I think … | |
Can somebody show me how to create a simple two column for strings? I need a sample code. Thank you for those who will help me. | |
| Hello everybody. I'm a [U]beginner[/U] and I need your help. I have a GUI programme and I need to make it run from an icon on the desktop. can you help me with an easy way to do so? |
Please Help me!!! I know this is a stupid newbie error, but I am a newbie. My program compiles and runs, but I can't get the interestP and the principalP to pass to the other class to fill the graph. I have worked on this non-stop all day. [code] import … | |
1. My code runs but the text panels won't display properly in the panel until i hide the frame and open it again or click min/max. 2. Can someone suggest the kind of layout i need to keep letters of each word together so it doesn't wrap to the next … | |
Hi Guys and Gals, I am new to programming and I decided to write my self a simple class to help me with my uni work. It is just to save me writing to screen then using the scanner class to read the input. It would be easier with a … | |
Hi, school started back up the other day, and our first assignment (as a group of eight) is to create a Server/Client project that is used to play network games. Before I go further, I want to say that I HAVE done work on this, quite a bit. I just … | |
I can't run .exe's, so I can't install JRE 6u15, even though it's harmless. Can anyone zip their jre directory and upload it for me as a .zip (not a .rar) file? I'd really appreciate it. | |
[code] import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.Robot; import java.awt.Event; import java.awt.AWTException; public class keyboard implements ActionListener { int i; String s[] = {"esc","F1","F2","F3","F4","F5", "F6","F7","F8","F9","F10","F11","F12", "psc","slk","pau","A","B","C","D","E", "F"}; String g = ""; Object b; JMenuBar m = new JMenuBar(); JMenu m1 = new JMenu("File"); JMenu m2 … | |
[code]class AC { int ID; String name; int AcNo; Date ODate; double balance; double transaction; AC(int ID,String name,int AcNo,Date ODate,double balance,double transaction) { this.ID=ID; this.name=name; this.AcNo=AcNo; this.ODate=ODate; this.balance=balance; this.transaction=transaction; }[/code] this is my main class i want to write those data which are relevant to those variable variables in an … | |
Ok, this one is a little tough for me to explain. I have a runnable jar file that contains a .exe that I'm trying to exec in my program like a command line function. Usually to execute a .exe in a command line I would do: C:\"path to .exe" -option … | |
Hi To All, I have an equation in string like this ((BASIC+HRA)*(30/100)) Using replace function Now i replaced this into values... String formula = ((10000+3000)*(30/100)) whole thing as a string now 'Formula'... How can i calculate this formula float amt = formula; Now i have an error...type casting....i can't calculate … | |
i need to add this criteria to my program: "if the user enters a last name in small letters the program should display the surname with the first character in capitals" Can some1 please help me with some examples for this?? i really need it.. thank you guys :) | |
hi all i need ur help to solve this problem 1. write an algorithm to find the average of there number called a,b,c 2. write an algorithm to add up all odd numbers between 0 and 100 3. what data type for (i) True ] if data type for 123 … |
The End.