31,001 Topics

Member Avatar for
Member Avatar for pash

Hi everyone!!!, am new to web services and trying to write a web method which accepts and return and array of int. Am using a c# client to consume it, when i call the web method in the client i get an error saying "can not convert int[] to int?[]". …

Member Avatar for pash
0
67
Member Avatar for deerowbear

I am trying to update a jlabel, but the label is not updating. Thanks for any help. Daniel [CODE]package converter; import java.io.*; import java.awt.*; import java.awt.event.*; import java.util.ArrayList; import java.util.Iterator; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.*; import javax.swing.filechooser.FileFilter; public class modelConverter extends JFrame implements ActionListener, ItemListener { // Data panel …

Member Avatar for deerowbear
0
115
Member Avatar for tazjaime

Hi to all... I've just join and found this amazing website/forum today which is very helpful. So here's the problem.. I need to find the factorial of an input number, I have a slight problem with my script, when i enter a value which is 11 upwards it doesn't print …

Member Avatar for JamesCherrill
0
194
Member Avatar for dipsn

I am intended to use heritrix to crawl some sites but want to skip all the ads that are linked in the pages also want to make my crawler to crawl only specific links form seed URL which I am getting from my database. Will you please guide me for …

Member Avatar for javaAddict
0
65
Member Avatar for regent_royal

I am currently working in one swing application. I need to display html contents in some window. In swing we are having [B]HTMLEditorPane [/B]that can display HTML contents on window (not in browser). Now this HTML contents is not well structured. like starting and ending with html tag inside it …

0
56
Member Avatar for countyman

Im am trying to write a Java program with a system class called:PayScale. 1. It needs to prompt user for "Hours worked" and "Pay rate" 2. Determine if there is overtime 3. Calculate overtime at "time and 1/2" 4. Calculate regular pay It must then print out: 1. Total hours …

Member Avatar for countyman
0
279
Member Avatar for dipsn

I am intended to use heritrix to crawl some sites but want to skip all the ads that are linked in the pages also want to make my crawler to crawl only specific links form seed URL which I am getting from my database. Will you please guide me for …

0
46
Member Avatar for PhiberOptik

Hey guys, I am writing a small script that requires me to make text that is within a textArea multi coloured. I will show an example in the quote box below: [QUOTE] [COLOR="red"]Hello, How are do you?[/COLOR] [COLOR="green"]I am Fine, how are you?[/COLOR] [COLOR="red"]Great![/COLOR] [/QUOTE] I was wondering if there …

Member Avatar for JamesCherrill
0
63
Member Avatar for thijo

hi i have to group the data. i completed coding. the output is [ output] C:\Program Files\Java\jdk1.6.0_03\bin>java check Please Enter the Number of Clusters 3 Enter the file to be read with csv extension hi.csv [(345,2) belongs to 0, (300,2) belongs to 0, (390,2) belongs to 0, (400,3) belongs to …

Member Avatar for thijo
0
100
Member Avatar for curtissumpter

Hi people, Yeah, so I have an application that works. The code is not buggy and I have worked hard on it. It is three files long but the section I need help with is small. It is the paintComponent section. It is a multi-threaded application and if you want …

Member Avatar for curtissumpter
0
124
Member Avatar for llemes4011

Hi, I was wondering is anyone could help me out. I'm trying to program Mario as my final for my comp sci. class. I'm not working about the actual Sprites now, just the basics, ie, moving, jumping and collisions. I'm stumped on the jumping part. Is there a good way …

Member Avatar for llemes4011
0
102
Member Avatar for trelek2

Although I'm a novice in Java I am to make a pool simulator in java with the ability to handle any arbitrary number of balls (i have created a Ball object, balls will be stored in the Ball array called balls). All the parameters are to be read in from …

Member Avatar for BestJewSinceJC
0
239
Member Avatar for EJD

The following code is giving me `"Exception in thread main java.lang.NumberFormatString"` error and some specifics following it. The file I am having the program read is in the following REQUIRED format: Smith 12 14 15 12 16 -1 James 19 19 28 48 12 -1 Where -1 is a sentinel …

Member Avatar for llemes4011
0
105
Member Avatar for babywen

my program doesn't display the shapes after the button is clicked .. can someone help me with this .. import java.awt.*; import javax.swing.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class DrawShapes extends JFrame { public DrawShapes() { JPanel panel = new JPanel(); final JButton circle = new JButton("Circle"); JButton square = …

0
39
Member Avatar for cppStudent

Hi Can someone please help me figure out how to find the parent of a node? Here is the closest I got to something that works. It finds the parent and prints it out "parent: x" but it doesn't send the parent node back ? Any help would be appreciated. …

Member Avatar for quuba
0
1K
Member Avatar for jooa

Hi I am trying to implement the Fast Fourier Transform. I have some code which I got online and slightly modified. I have a class GrabPixels which extracts a pixel array from an image, the class FFT implements the transform. My problem is I don't think the methods in the …

Member Avatar for JamesCherrill
0
396
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
143
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
113
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
98
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
110
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
153
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
129
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
197
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
115
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
166
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
97
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
66
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
162
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
92
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

The End.