36,051 Topics

Member Avatar for
Member Avatar for abhi_elementx

Hello folks, I am trying to run a simple java application which connects to Oracle 9i and gets and displays the resultset. I am connecting to oracle using sun.jdbc.odbc.jdbcodbc bridge driver. [B]**The application was running fine 4 days ago**[/B]. I m using Netbeans 6.0. Two days ago I installed Netbeans …

Member Avatar for abhi_elementx
0
146
Member Avatar for tiger86

I am designing a site with a javascript login that leads you to a flash actionscript site. What language would I be looking at for a database? Mysql? I can use any feedback.

Member Avatar for javmedia
0
95
Member Avatar for nandomendoza

I have to wrtie a program for class that asks the user to input to cards ex: 7c(7 of clubs) and then compare the two cards at the end to see which one is the greater card. This is the code I have so far and for some reason it …

Member Avatar for stephen84s
0
117
Member Avatar for r5quad

Im getting a pretty out there error that I have no explanation for when I run my program, here is what Im getting. Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:65) at apple.awt.CToolkit$4.run(CToolkit.java:1259) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Exception in thread "AWT-EventQueue-0" …

Member Avatar for stephen84s
0
103
Member Avatar for PhiberOptik

Hey guys, I want to writing a program that clicks. I want to be able to specify the area it clicks. Anyone know how to do this? I googled a bunch and couldn't find anything even close to this.

Member Avatar for sillyboy
0
114
Member Avatar for MarMcD

Hello, Can anyone please help me... I need to create a GUI program that holds product inventory. I have five errors and I can't figure out what they are... I need a second look from someone... Thanks in advance! [code] import javax.swing.*; import java.awt.*; import java.text.NumberFormat; import java.util.Locale; public class …

Member Avatar for MarMcD
0
160
Member Avatar for JLNY

Hi, I have a JSP form (test.jsp) for my users to upload a file, and another JSP file (testHelper.jsp) to work in the background, both JSP's are under the same directory ([url]http://www.domain.com:8080/AppName/)[/url]. After work is done, I send users back to the form (with parameters to determine which status message …

0
41
Member Avatar for ChaosTheory

hi, I have an application that paints a rectangle(car) and moves it across the screen using a timer when a start button is clicked. The problem i have is i want to generate(paint) cars randomly at specific intervals (using a timer) when the cars disappear from the screen/street. Now i …

Member Avatar for quuba
0
133
Member Avatar for himanjim

Hi, I'm new to jsp I'm writing a java code of simple chat application that consists of an applet on client side and a java server page on server side. My applet is fine but the jsp code shows unusual errors and in most of the cases the browser simply …

Member Avatar for hardikjobalia
0
742
Member Avatar for mary10

Help me implement these in playlistImpl The user needs to be able to: * Create playlists * Delete playlists * Edit playlists * play playlists com.xxx.iopackage.inputstreams.mp3player.playlist.PlayList com.xxx.iopackage.inputstreams.mp3player.playlist.PlayListImpl [U]PlayList.java[/U] [CODE=java] package com.xxx.iopackage.inputstreams.mp3player.playlist; import java.io.File; import java.util.LinkedHashSet; /** * Models a playlist of MP3. A Playlist is a group of mp3s which …

Member Avatar for nymph
0
205
Member Avatar for joshmo

I didnt know where to post this but i hope this is the right place. I was wondering how a code in c++ can be used in or with java. i.e if I decided to write a code in C++ that performs processing and i want to write another code …

Member Avatar for stephen84s
0
102
Member Avatar for azket

Hey everyone, let me get straight to the point: For my program I developed two custom classes that extend jPanel and have some text fields and check boxes in them. (public class ServicePanel extends java.awt.Panel) Now I've encountered three problems. 1. When add those panels to the GUI Palette and …

Member Avatar for azket
0
120
Member Avatar for karthikRaju

I am doing online examination project, in that my requirement is to set one question in one page,the maximum time limit for the question is 60 seconds, count down. pb is if the user click refresh and back button the time get reset to 60 seconds again in this way …

Member Avatar for javaAddict
0
171
Member Avatar for rayda

[ICODE]import java.util.Scanner; public class Simple { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("How many number?"); int numNumber = scanner.nextInt(); int sum = 0; int []numbers=new int[numNumber]; int highest=numbers[0]; int lowest=numbers[0]; for(int i = 0;i< numbers.length ; i++) { System.out.println("Please input number" + i + ":"); …

Member Avatar for javaAddict
0
100
Member Avatar for curtissumpter

Hi, I currently use Eclipse as my IDE. I'm looking for instructions on how to integerate my Java code with HTML in the Eclipse enviornment or what IDE I can use in conjunction that will allow me to do so. Any advise would be appreciated. -- LiveWire

Member Avatar for peter_budo
0
70
Member Avatar for IMtheBESTatJAVA

Hey guys I just ran into some pretty interesting java problems on a different website and thought some of you might get a kick out of this. Determining on how well this goes I may post some more. So here comes problem 1. Determine the following output with the use …

Member Avatar for verruckt24
0
167
Member Avatar for weblover

hi all,i have a java project, i want to read records from a data base(access) and then put them in a container with check box within each record..but my code is only displaying the last record of the table..i want each record to be displayed on a line..please help me …

Member Avatar for weblover
0
99
Member Avatar for smoore

Okay I am writing a program that, in the end, will bring up a GUI window and ask the user what type of shape they want to make. The choices are line, circle, ellipse, rectangle, and polygon. When the user selects a shape they are then asked some key information …

Member Avatar for smoore
0
1K
Member Avatar for mona515

I seem to have done something wrong, but I can't figure out with it is. Everytime I compile I get the error `"reached end of file while parsing"`. Can anyone help me find where this error is? public class ElectricBill { private double k; private boolean s; public ElectricBill(double pKwh, …

Member Avatar for verruckt24
0
231
Member Avatar for heysebas

Hi all, I've written a Java programme with a while(true) loop. Within this while loop, it's a whole lot of process which runs indefinitely (because I'm doing some image recognition and doing some genetic algorithm testing.) I first tested it in NetBeans, by clicking on 'Run'. Everything went well, but …

Member Avatar for masijade
0
92
Member Avatar for ravikiran032

i am new to java networking. my client program is giving an error `"Couldn't get I/O for the connection to:192.168.1.2" ` in the below program.will u please help me.and 192.168.1.2 this is my local machine. code: import java.io.*; import java.net.*; public class client1 { public static void main(String[] args) throws …

Member Avatar for masijade
0
5K
Member Avatar for Chaster

Hello, In my application, as a result of P2P communication, I receive a String object, which is the serialized representation of a Hashtable. Can I somehow recover my original object? I've never done such thing before, and I couldn't find any example which would help. Thanks in advance, Chaster

Member Avatar for verruckt24
0
85
Member Avatar for lovely_aly

Hi all, I'm a beginning CS student and am working on an assignment today and am hoping someone wouldn't mind checking my work. I've typing out each assignment problem followed by the code I wrote. Also, please note I'm not required to write complete methods just the code for the …

Member Avatar for javaAddict
0
152
Member Avatar for wizzywas

Hi All, I need a bit of help with a java Dots and Lines game i am developing, Similar to the Dots and Box game. I have laid out the Dots with the two colours blue and yellow which change accordingly. I now need to draw a horizontal or a …

Member Avatar for quuba
0
2K
Member Avatar for rainny

Hi, does anyone know how to read the specified line from a text file? And by create a program, we can load what is write inside the text file and read line by line to show at the program. Does anyone have idea on it? Thanks and regards Rainny

Member Avatar for Taniotoshi
0
125
Member Avatar for gabec94

Hi, I am new to java and want to play around, I want to make a program that takes in input of lets say 5 numbers, and displays them separated by a space. For example I would enter 12345 and 1 2 3 4 5 would be returned. this is …

Member Avatar for Taniotoshi
0
564
Member Avatar for starzstar

Hi, I have the following structure of my project [code] Copyproject(main folder) | |_____src(folder) | | | |__Nertworkpackage | | | | | |__Storepackage | | | | |__FtpPackage |__module1.py | |__module2.py |____ tests |__ module3.py [/code] Module1 takes some commandline parameters that will do some operation Like If I …

Member Avatar for starzstar
0
145
Member Avatar for jnora

I compiled my remote interface and bean class successfully using jboss-3.2.5 and java 1.4.1. But, the home interface did not compile. It gave me the following error instead: --stockhome.java:7: cannot resolve symbol --symbol : class Stock --location: interface ejb_example.stock.StockHome --Stock create() throws java.rmi.RemoteException, javax.ejb.CreateException; --1 error Thanks. JNORA

Member Avatar for JamesCherrill
0
61
Member Avatar for dipsn

Thank you for the quick reply . I am having problem with deploying web application in Netbeans 6.5 with Tomcat 6.0. I have all the services running of Apache server and also have configured it with my project but it is giving "the requested resource not found error" in my …

Member Avatar for peter_budo
0
49
Member Avatar for britto

help needed..... i trying to write a c compiler in java but im a newbie in compiler design....... i know the phases of compiler is there any classes in java for implementing these phases?????? is there a source code for c compiler written in java?????----open source thanks in advance

Member Avatar for Salem
0
91
Member Avatar for pmend

hi how to dishplay data from mysql to jsp page give me code or any hints. thanks.

Member Avatar for peter_budo
0
31
Member Avatar for Ratte

I am in the process of designing a game implementation in Java, and without much experience with GUIs past swing applications, I am not quite sure where to start with this. The game I will be implementing can be seen and played here: [url]http://www.pentago-online.com/[/url] In other words, it is board …

Member Avatar for stephen84s
0
135
Member Avatar for ppp83

Hi there, I was wondering can i create a jsp page, and ejb3, how does the jsp pages interact with the ejb3 classes? can ejb3 classes, jsp pages be packaged in war instead of ear to be published to the server?

Member Avatar for stephen84s
0
69
Member Avatar for ppp83

During first loading of jsp, i want to iterate through the content of an arraylist and have it display inside a table of jsp page. But i want to use the jsp tag, instead of the struts logic tag, is there a way to do that? And how to invoke …

1
62
Member Avatar for radar2009

hi there i need to make a program that the user using comboboxes chooses the number of guesses and and range of guesses they are allowed using a GUI that looks like this: [url=http://smg.photobucket.com/albums/v321/Howrandom/?action=view&current=Untitled.jpg]http://smg.photobucket.com/albums/v321/How...nt=Untitled.jpg[/url] i have made all the buttons etc and for the range combobox have used the code: …

Member Avatar for stultuske
0
192
Member Avatar for PhiberOptik

Hi guys, I am trying to execute a .jar executable within a java file but nothing happens, no errors, just nothing in general! [CODE=java]public void executeCmd(){ Runtime run = Runtime.getRuntime(); try { Process proc = run.exec(cmd); } catch (IOException e) { //sendmessage saying there was an error } }[/CODE]

Member Avatar for masijade
0
355
Member Avatar for shaselai

I am trying to create a system where it has a number of queued slots and it accepts X incoming services. Now each service arrives/departs at different times so i could have one arrive 10 seconds from now and departs 20 seconds after arrival while the one after that could …

Member Avatar for BestJewSinceJC
0
97
Member Avatar for DomoCobra

When I run my code i get this error Main.java:44: illegal escape character y = news.indexOf("<\description>"); It points to the \d part and I cant seem to use this in the indexof function but I need to search for that exact string is there anyway around this?

Member Avatar for sillyboy
0
79
Member Avatar for PhiberOptik

Hey guys, I am trying figure out a way of updating my program. Since I am a newbie to programming I have no idea where to start. My first idea was to download a new jar, launch it, kill the old app, and then delete it with the new one …

Member Avatar for PhiberOptik
0
91
Member Avatar for DomoCobra

I am trying to write a program that in it I have to search through some text and to find something and I dont know where to start I have some text in a String and for example I need to search through it and store everything between <title> and …

Member Avatar for DomoCobra
0
131
Member Avatar for nishantdaniweb

Hi All I am creating a url for a file, which is uploaded in content management server, in the jsp page and from this jsp, I am opening a new window for this file to show the content to the user. My problem is, I want to hide the url …

Member Avatar for stephen84s
0
2K
Member Avatar for gpittingale

Hello everyone, I am fairly new to java so plese bear with me, here is my question: i made a query to a sql database in a jsp page, what i would like to do is is import the result set into java so i can do some math with …

Member Avatar for peter_budo
0
105
Member Avatar for kjetil4

Hi, Im trying to make a media player in Eclipse. Its just a simple thing not an advanced one but i cant get it to work. I have looked at some examples and tried to create a simular version. I could really use some hints on how to make it …

Member Avatar for kjetil4
0
618
Member Avatar for dipsn

Hi. I want help to connect my web application to my MYSQL database and to extract only specific column to return its values to my application Also I want to know is there any specific filter in java that will allow a crawler to crawl only a collection of URLs …

Member Avatar for verruckt24
0
127
Member Avatar for sannidhikumar99

i want to Write a program to download a website from a given URL. It must download all the pages from that website. It should take the depth of retrieval from the user input. All the files/pages must be stored in a folder. plz give me solution for this as …

Member Avatar for stultuske
-1
131
Member Avatar for thijo

Hi, I got this code from My trainner.He asked me to debug.I tried my level best to debug. but still it shows the K meanspoints class needed error. This alone i could not solve. I also tried with vector class, but it shows error. please help me. [code=java] /* Implements …

Member Avatar for verruckt24
0
115
Member Avatar for jksaheta

/* Problem statement... You go to a wedding reception, and there are a lot of people. All of these people 'know' the bride or the groom in some manner. Additionally, a lot of them may know each other in one or more manner. For example, let's take Ann and David, …

Member Avatar for verruckt24
0
118
Member Avatar for VernonDozier

I have a program that is supposed to draw circles every twentieth of a second every time a button is clicked. When the button is pressed, a function is called and a for-loop is executed 25 times. Within that for-loop, [ICODE]repaint ()[/ICODE] should be called. Within the [ICODE]paintComponent[/ICODE] function, random …

Member Avatar for VernonDozier
0
547
Member Avatar for sane83

Hello everyone... Im really lucky to find this site..I have been struggling hard to start of my project, thats when my friend refered me to this site.. My project is basically a kind of search engine.. I have collected all the software required for this.. NOW MY PROBLEM IS IN …

Member Avatar for BestJewSinceJC
0
98
Member Avatar for kbullard516

Hello, I am trying to design an application that creates an array of 10 circles, each circle having random left top and radius values. Then i want to print out the values of each of the 10 circles in the array in a table format. I have 3 classes, Circle …

Member Avatar for kbullard516
0
180

The End.