32,204 Topics
| |
I know there's loads of these threads already and the norm is to [URL="http://www.google.co.uk/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-GB%3Aofficial&q=null+exception+error+java+method&btnG=Search&meta="]Google it[/URL], but I can't seem to find the solution. Anyway I keep getting this darned error and need to know how to fix it ASAP, since the Servlet project is due in this Wednesday. Code is … | |
Hi, I'm using eclipse to write my programs but for some reason this code does not work can someone tell me whats wrong with it? here is the code. and sorry if i didnt use the code wrapper properly. package dataTypes; import javax.swing.*; public class Window { JPanel pnl = … | |
I have a Player class, a Weapon class and a Projectile class in my applet game. The weapon class uses Projectile objects when fired. For example, everytime I click I want this code to execute: [CODE]projectileList.add( player.weapon.fire() );[/CODE] player.weapon.fire() returns one or more projectiles that the projectileList handles every frame. … | |
Hi , i want to learn programming for android , so i download android sdk 1.5 and netbeans plugin . i have a problem when i run program that i Have written emulator not shown !!! and this message shown : select device please help me , what i should … | |
I have a class Banner that extends JFrame implements ActionListener and is responsible for thread handling via actionPerfmored. "launch banner", "pause banner" works. "resume banner" seems to be dead alltogether [code=java] import java.awt.*; import javax.swing.*; public class BannerP extends JPanel implements Runnable { int width, height, xPos=10; boolean stopT; public … | |
Hello, I'm starting in Java ME development, but i'm already a Java for desktop developer, but how i can build Jar files for my Java ME applications using my Eclipse or command-line, i want to build it only. Thanks, Nathan Paulino Campos | |
Hello, I'm learning Java and i want to build a program that save emails to an [i]*.txt[/i] file, like this: One guy send me an email, then the program periodically search if i have emails every 10 minutes and if i have it saves all the emails in a single … | |
Hey everybody :) I am writing a program in NetBeans to write an invoice... the user has to click a few buttons to add the values and then clicks the "add to order" button and the information is stored in a jTable (this is all working) when the user clicks … | |
What I have is this: [CODE=Java] public abstract class Ability { public class Action extends Ability{} public class Reaction extends Ability{} public class Support extends Ability{} } [/CODE] I have it like that so I don't have all of the Ability-extended classes in their own .java file (to save room … | |
i have some basic knowledge of oop in java like polunophisum , inheritance etc but i do not about techniques like coupling and cohesion plz help me | |
hi all i got problem on JProgress bar. when i click on button progress doesn't show. it display after completing the progress [code] class A{ //button clic ProgressBar frame = new ProgressBar(); frame.pack(); frame.setVisible(true); frame.iterate( ); class ProgressBar extends JFrame //inner class of A { JLabel l1; JProgressBar current; Thread … | |
Hi, I am new to the java world. I am getting the following error. ClassB.java:62: incompatible types found : int required: order.ClassB return Integer.parseInt(conString); This what I am trying to do.. I have two classes. Class A and Class B. Class A calls a method located in Class B (refer … | |
I developed a pgm for msg transfer using UDP.i need a source code for transfering file using UDP and (with GUI), More details:After entering name of file on clients gui,the server should transfer the file to client and the contents of the file should be displayed on clients gui. | |
i need guidance to develope a pgm for msg transfering using tcp.i alredy developed this for single client and single server but i need to transfer msg from one client to another via single server. | |
I keep getting a 'illegal start of an expression' and ')' expected on a loop line for a program that counts and compare ten numbers and displays the largest. I have checked for "{}" and "()" parity, and also for ";" at the end of my statements; but the following … | |
hi all, does anyone know much about the FESI interpreter ??? i am getting an error while using this third party product (GTX) which is written in java and i cant work out whats wrong. FESI is built into this product which i am using so i dont know the … | |
Hello, everyone. Can someone explain to me on how to read a .mdf file (the SQL Server 2005 Express kind)? I have a Java IDE (JCreator) and the JDBC (SQL Server 2005 Express compatible) installed into this computer. Right now, I'm using this: [CODE]Connection c = java.sql.DriverManager.getConnection("jdbc:sqlserver://localhost\\SQLEXPRESS;DatabaseName=qsscsdb;IntegratedSecurity=True");[/CODE] to read the … | |
Well, so if I use static initialization blocks to access another static data inside another class: [code=java] public class StaticTestA { public static Queue queue = new LinkedList(); static { System.out.println("A start"); StaticTestC.queue.add("A"); StaticTestA.queue.add("A"); StaticTestB.queue.add("A"); System.out.println("A stop"); } } public class StaticTestB { public static Queue queue = new LinkedList(); … | |
Hi, In this code: DrawPanel.java [code=java] import java.awt.Graphics; import javax.swing.JPanel; public class DrawPanel extends JPanel { public void paintComponent(Graphics g) { super.paintComponent(g); int width = getWidth(); int height = getHeight(); g.drawLine(0, 0, width, height); g.drawLine(0, height, width, 0); } } [/code] and this the application DrawPaneTest.java [code=java] import javax.swing.JFrame; public … | |
For example: [CODE]package topdowngame; public class SpeedDir { double speed; private double direction; static final SpeedDir INTERNAL = new SpeedDir(1,45); // Other stuff [/CODE] If I write a code like this and excute it when I click: [CODE]player.speedDir = SpeedDir.INTERNAL;[/CODE] It only works the first time I click. I have … | |
hello, im soon to be starting a Masters in Multimedia Computing so have been thinking of a few ideas to do my project on. One of them was to make a mobile/multiplatform e-comic reader - supporting the cbr/cbz formats (which are both comic archives compressed as zip/rar). Would Java be … | |
I'm trying to finish this code..I'm still getting errors..can some plese help me! [TEX][ICODE]import java.util.Scanner; import java.util.Random; public class robot { public static void main (String args []) { int robot_x = 0; int robot_y = 0; int robot_m_x = 0; int robot_m_y = 0; int[] robot_instructions = new int[64]; … | |
Why does the thread 3 execute before thread 2 though iam invoking it before thread 3? if i am right.. after invoking thread 1 the printmsg1 enters into the synchronized state. thread 2 is put in the stack then thread 3 is put in the stack. so after the thread … | |
I need to implement an online auction as a client-server application (not Web based) Th auction should involve just two items for which people may bid. At the start of the application, the server will expect to be told the final bidding time for each of the two items, using … | |
How can we display a list of all the databases in MYSQL using Servlets / JSP / JAVA ? Regards, Bharat Shivram | |
You guys know of a good Java Ide? I have tried Netbeans and Eclipse but its slow. Loading the programs up takes about 5-7 minutes, and when I type. It freezes and 15-25 seconds later it show it on the screen. I need something better....Any ideas? | |
Hi All, How to create a pai chart or bar graph from a table data in java ?? Thanks in advance. | |
I'm looking for a way to detect when a JFrame is moving (maybe there is some kind of listener). I have a primary JFrame that loads a 2nd JFrame next to it. I want this 2nd JFrame to move simultaneously with the primary JFrame as though it were attached. I … | |
Numbers whose sum of digits is divisible by 3 represent numbers divisible by 3. Write a program to verify this famous statement. Input a 5-digit integer n from the keyboard. Find the sum of the digits. Call it sum. Verify that either (a) both n and sum are divisible by … | |
hi all, i have been tasked to write a servlet (java 1.4.2) which grabs a file from a ftp server via sftp. i know how to write a simple servlet but i dont know much about sftp. Couldnt find any api on the suns site either. any help on how … |
The End.