32,204 Topics
| |
Hi guys :) Well I got an "variable might not have been initialized" error when I tried to compile the following code: [CODE=java]import java.lang.*; public class NewFrame { public static void main(String[] args) { if (args.length != 3) { System.out.println("Usage: java NewFrame <frame-name> <frame-hight> <frame-width>"); System.exit(1); } int firstArg, secondArg; … | |
Background: I have two lists: one list (list) contains elements of AnyType and one list (index) contains integers. The integers (in index) are sorted in ascending order! Mission: To print out the elements in list 'list' @ index given by list 'index'. Example: list = {I, really, love, to, hate, … | |
hi everyone. my issue is that when creating a prepared statement if i create a delete statement with a variable the code doesnt excute but instead if i provide it with a string it works fine. whats the problem. this code doesnt seem to work [CODE] public void delCustomer(String id) … | |
hi everyone. can any of you guide me asto how to avoid null pointer exception in the result set variable.i am using this function to get all data in mysql table in hashtable. how to i take the scenario if there was no data in the table at time of … | |
I have been working on this for days!! I dont want to allow negative numbers in my program. I have changed it so many times I cant stand to look at it anymore. I greatly appreciate any help even just an example of what I need to do. I will … | |
hai have designed calc application but iam not geting how to get the clicked number shoud present in the text field how to do arithmetic operation iam beginer of java please can help | |
I'm working on trying to fix the errors that I have in my coding. The first error I am having is with the import lines i.e., import dot java dot text dot asterisk semicolon The message I am getting is <identifier> expected. What do they mean? I am very new … | |
I'm trying to create a class that provides object serialization and deserialization methods for use by another class. These two methods (I think) are in the class already (see code below). I'm not sure how I would go about making those 2 methods their own class and then returning the … | |
hi everyone i had been working on a project using random files (.dat) and now i want to change it to use a database instead. the thing is my project is quite long and it would be a hassle to go and change code. i had used hash tables to … | |
I want to use JDBC with apache's pooling library. I can't find easy tutorial/example to follow. Please help me get it up and running. I have it downloaded and I watch at it puzzled :) | |
[code] public class A { String username = "Unknown"; public A() { username = "Virux"; B.method(); } } public class B extends A { public void method() { System.out.println(super.username); } } [/code] Obviously my actual code is much more complex than this. But how can I get B to see … | |
Hello When I login as instructor data from db is put into the model (Instructor.java) because the instrutorBean extends the model Intructor.java Is this copy(object sourc, object dest) doing anything? I would like to be able to have several people logged in at the same time is this possible? [code] … | |
Hi everyone, I used to create shortcuts with IWshRuntimeLibrary in C#, but now i am trying to create in java, which i couldn't found via googling. Can anyone show me the shortcut path of wisdom and illumination? :) | |
Hello everyone, My application needs a feature to detect whether a directed graph contains circle. Does anyone know any efficient implementation? Which implementation is the best (most efficient)? thanks in advance & happy new year, George | |
Hi there, Is there anyone here using NB platform to develop applications? Anyone using former Matisse GUI builder in NB 6.8? I can't see it in my IDE! | |
Hi, I am not sure if this the right forum... Please suggest on what should be the best design practice for running 10 instances of desktop based java applications (No Enterprise or Webcomponents) on different machines BUT still using the same database. Summary: a) Each application will do writes/updates to … | |
Hello, I'm having problems passing an ArrayList from a method in one class into a method of another class and accessing it. Here's my code. [CODE]private static void createData() throws IOException{ ArrayList<movie> moviesList = new ArrayList<movie>(); moviesList.add(new movie(1, "Schindler's List", 18, 19.99)); moviesList.add(new movie(2, "Red Cliff Blu-Ray", 4, 43.50)); moviesList.add(new … | |
Hello all, I have been working on a project in scala, but I am getting some error messages that I don't quite understand. The classes that I am working with are relatively simple. For example: [CODE=scala] abstract class Shape case class Point(x: Int, y: Int) extends Shape case class Polygon(points: … | |
Hi, I'm having trouble with my Java code. It's meant to read in from a csv file and update the elements on the GUI to reflect this e.g. as it reads in one line, images and text appear on the GUI reflecting the data. Anyway, to get the GUI to … | |
im my java SE application i have a messagebox prompting asking the user to press OK. i want to make the user wait a certain time and the messagebox will automatically close in a certain time. i read on swing.timer about this. but im bit confused with the implementation. how … | |
hi ..spandanagella, i'm working on a project to develope a crawler using concepts of web mining.. i'm trying to implement an algorithm on java.. | |
I need to develop J2me (Midlet for graduation project)...I installed Java ME SDK 3.0 after installing JDK 6.0 I was running Java ME SDK 3.0 and I faced some errors: An error: A java.io.IOException exception has occurred java.net.ConnectException:connection refused This error keeps poping up 100 times+ while the Java ME … | |
hi everyone. i get this error in my porject at runtime.actualy it was working fine. i added the jdbc jar to my project and here what i get at runtime [QUOTE]java.lang.NoClassDefFoundError: de/vogella/mysql/first/test/Main Caused by: java.lang.ClassNotFoundException: de.vogella.mysql.first.test.Main at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown … | |
i want to use google map api for my desktop application. the application will be totally connected to internet. while i was searching some research notes about this implementation. i found a ideal site with the configurations. but it has some java files to be downloaded. but when i tried … | |
Hi, I have a button with an image in it. When I reduced the width of the button, the image was centered in the button which I do not want to happen. I want it to be left-aligned in the button but have no idea how and searching hasn't yielded … | |
I found an application that gets the source from a webpage. That worked fine. I tried converting it to an applet, and it works great in netbeans. The problem is when I try to run it in a browser, it does nothing. As you can see from the code, I … | |
Hi, I have difficulties to get variable from other class. See class Mod01 and Mod02 below, in class Mod02 I will get ct1=0, but I want ct1=250. Any help will be gratefully. Thank you. --------------------------------------- [code] final class Mod01 extends FullScreen { int ct,coba; String hits; [B][COLOR="Red"]public int test() { … | |
I am having a proplem checking the stu_uid for a specified stu_password. I am not really sure what error is. When I build the db for the first time and login as a student it says that unknown user name but it is all in the table and passed to … | |
Hi! I have a JTable which I've put some cell padding on with setIntercellSpacing(), the problem is when I select the row the background gets blue except the area of the padding, it remains white. I just doesn't look good. What shall I do to fix it? Thanks in advance! |
The End.