32,204 Topics

Member Avatar for
Member Avatar for Bladtman242

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; …

Member Avatar for Bladtman242
0
506
Member Avatar for StorLiten

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, …

Member Avatar for SasseMan
0
120
Member Avatar for kesh1000

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) …

Member Avatar for SasseMan
0
94
Member Avatar for kesh1000

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 …

Member Avatar for kesh1000
0
329
Member Avatar for PSU92

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 …

Member Avatar for SasseMan
0
136
Member Avatar for Guru.M

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

Member Avatar for Madawar
0
74
Member Avatar for zigana91

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 …

Member Avatar for naziatarannum
0
97
Member Avatar for Guru.M
Member Avatar for jwenting
0
19
Member Avatar for gymangel812

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 …

Member Avatar for JamesCherrill
0
106
Member Avatar for kesh1000

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 …

Member Avatar for kesh1000
0
938
Member Avatar for Stefano Mtangoo

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 :)

Member Avatar for Stefano Mtangoo
0
90
Member Avatar for Virux

[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 …

Member Avatar for javaAddict
0
107
Member Avatar for ceyesuma

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] …

Member Avatar for ceyesuma
0
132
Member Avatar for GökhanBarış

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? :)

Member Avatar for necman
0
763
Member Avatar for George2

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

Member Avatar for mayne
0
560
Member Avatar for Stefano Mtangoo

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!

Member Avatar for Stefano Mtangoo
0
70
Member Avatar for valatharv

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 …

Member Avatar for jwenting
0
115
Member Avatar for Adhoc82

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 …

Member Avatar for Adhoc82
0
8K
Member Avatar for klactose

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: …

Member Avatar for ~s.o.s~
0
255
Member Avatar for xx_kandikidd_xx

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 …

0
94
Member Avatar for lich

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 …

Member Avatar for JamesCherrill
0
159
Member Avatar for dhruv.mani

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..

Member Avatar for stultuske
-1
43
Member Avatar for johnnydarten

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 …

0
80
Member Avatar for kesh1000

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 …

Member Avatar for kesh1000
0
188
Member Avatar for lich

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 …

Member Avatar for JamesCherrill
0
165
Member Avatar for Mr. Blank

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 …

Member Avatar for Mr. Blank
0
92
Member Avatar for sfrider0

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 …

Member Avatar for sfrider0
0
125
Member Avatar for HaveFun

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() { …

Member Avatar for Abdel_eid
0
125
Member Avatar for ceyesuma

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 …

Member Avatar for ~s.o.s~
0
157
Member Avatar for gunnarflax

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!

0
78

The End.