31,002 Topics

Member Avatar for
Member Avatar for J-Dub

Sometimes when I run a program that I am writing in NetBeans, it runs old code or something. It want do what I just put in. Instead it will run past code. I will get a bug in the program I am writing and when I fix it. It still …

Member Avatar for lashbandi
0
126
Member Avatar for sirlink99

I am trying to export a project using eclipse, and the Images that I have in a separate folder do not export. I have tried to use [icode]image = new ImageIcon (Toolkit.getDefauleToolkit ().getImage("Image/image.png"));[/icode] and [icode]image = new ImageIcon (ImageIO.read (new File ("Image/image.png")));[/icode] and neither of them worked. It works when …

Member Avatar for sirlink99
0
1K
Member Avatar for PROgamer

Hi, i do have problem with event handling im done with layouting but the only thing i dont know is what methods of event handling should i use in my program [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.border.*; import javax.swing.ButtonGroup; public class Pizza extends Frame implements ActionListener,ItemListener { JFrame …

Member Avatar for hfx642
0
171
Member Avatar for gyno

I am having serious trouble with my NetBeans and the GlassFish server, initially as of two days ago i was able to run few examples of web applications i have on my netbeans, but i don't know how it works cos initially i was made to believe that the GlassFish …

Member Avatar for peter_budo
0
117
Member Avatar for carloskire

Hi. I'm programming this Java app on NetBeans 7 to deploy it via Web Start and is all going well. I'm developing on Windows but the jnlp, jar etc. are to reside on a unix box. It runs well on unix too. At the moment my app reads a text …

Member Avatar for carloskire
0
497
Member Avatar for Srin

I need to instantiate a class during runtime based what a user has selected in a list, but these classes each have their own new specific functions and variables, they use the same named functions, but set different variables, and different numbers of variables. I made an example, since my …

Member Avatar for JamesCherrill
0
292
Member Avatar for sirlink99

I am trying to save an image with this line [CODE]ImageIO.write(image, "JPG", new File(fileDestination.getText()));[/CODE] but it is giving me an error. [CODE] java.io.FileNotFoundException: C:\Users\Adam (Access is denied) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(Unknown Source) at javax.imageio.stream.FileImageOutputStream.<init>(Unknown Source) at com.sun.imageio.spi.FileImageOutputStreamSpi.createOutputStreamInstance(Unknown Source) at javax.imageio.ImageIO.createImageOutputStream(Unknown Source) at javax.imageio.ImageIO.write(Unknown Source) at screenCapture.CaptureScreen.actionPerformed(CaptureScreen.java:111) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) …

Member Avatar for NormR1
0
317
Member Avatar for harinath_2007

Hi folks.. Can you tell how many times the loop is executed with [B]exact[/B] reason. [CODE] int c=10; while(c>1) { c++; } System.out.println("loop over."); [/CODE] I am expecting an indepth answer...

Member Avatar for harinath_2007
-1
227
Member Avatar for iparanjpe

Tell me what u think I want to create an application that takes a stream of stock price data from many stocks. It then checks for resistance levels. If the stock has hit a level consistently and then bounced back down twice, it is saved to a jtable file or …

Member Avatar for peter_budo
0
104
Member Avatar for AshfaqueIW

Hello all, I want to develop Android java applications for Android Smartphones(>Android 2.1) and Android Tablets(>Android 3.0). I had already downloaded the Latest Android SDK and Eclipse plugin for that. The entire environment for developing the android application is ready with me. I have professional experience of programming in C++ …

Member Avatar for peter_budo
0
175
Member Avatar for ranu jain

hello, i have a question--- i have to implement arraylist by using array. and i m using following approach- [CODE]package DS; import java.lang.reflect.Array; public class ArrayList<T> { T ob[]; public ArrayList(Class<T []> c, int s) { // Use Array native method to create arra of a type only known at …

Member Avatar for NormR1
0
134
Member Avatar for Majestics

As java programmer know that program made under java are converted to jar file for usage... And an updation in any class require that jar to be updated. So is there any way that we can update the class file at runtime rather then whole jar file. I want to …

Member Avatar for NormR1
0
110
Member Avatar for sim_pack

hi, i have a JButton object and i added an actionListener to it. it works well with a mouse click, but if use the keyboard enter key while the focus is on the JButton, nothing happens. do i need to add a keypress listener on top of the actionListener to …

Member Avatar for mKorbel
0
467
Member Avatar for ravi063

Hi, i am new to crawljax. I am trying to crawl linkedin website using crawljax and java. Till now i am able to login into linkedin site and search a user. The search results in a list of users. Next i want to click one by one on all searched …

0
45
Member Avatar for fcaoile

I have a java gui app which will be used by various secondary schools. I'm actually in the process of adding some "activation/serial code" before someome can use the program(they need to pay for it). I'm thinking of using an online mysql from a remote server to store and check …

Member Avatar for Muralidharan.E
0
112
Member Avatar for bbyynn

Hi all, I just make a program and I get in trouble about set method.so anyone can help me? [CODE] import java.util.LinkedList; public class Polynomial { private LinkedList<Integer> coeff = new LinkedList<Integer>(); private int deg = 0; /* Constructs a new polynomial of degree zero */ public Polynomial() { } …

Member Avatar for peter_budo
0
188
Member Avatar for soniagupta98

hey can any one help me in writing the code : Write a Java program that sorts given integers using threads I am not able to proceed ..What should i have in main function()

Member Avatar for finfort
0
132
Member Avatar for ranu jain

A university wants to aumomate the parking area present inside the premise. Students and faculty members are required to buy passes in order to park their vehicals in the parking lot. The different types of passes available are : Cars : Weekly pass : 70 rs Monthly pass : 280 …

Member Avatar for ranu jain
0
374
Member Avatar for lashbandi

Hi everyone... My boyfriend's birthday is on Saturday, August 13...and i wanted to do something really different this time...since we are 1,000 miles apart...i was thinking if i could write a program which would generate random messages which I would already have written in the code... i was thinking of …

Member Avatar for sirlink99
0
271
Member Avatar for corby

Hey I am making a game and i can make the character jump, but i am trying to make the character land on an object. I am trying to do this with object collision but im not sure how. My code for jumping for an image with a certain height …

Member Avatar for NormR1
0
190
Member Avatar for justyno

am developing a typingTutor quite similar to mavis beacon. i have designed the keyboard which highlights the press key on the syatem keyboard whenever a key is pressed. the program has a screen that displays moving text which the use has to type to match correctly.my problem is how to …

Member Avatar for NormR1
0
84
Member Avatar for sirlink99

I have made this screenshot program in hopes of eventually making a screen recorder, but I am having trouble displaying the image for the user to see. I currently have it so that it displays and saves. When it displays it is blank, but when it saves there is a …

Member Avatar for mKorbel
0
191
Member Avatar for ARaza110

I am using MouseRotate class of Java3d to rotate two cylinders. But when i rotate one cylinder the other cylinder rotates with it. Is there a way around this problem. Thanks.

Member Avatar for hfx642
0
196
Member Avatar for darangho

Hi, I am trying to create a make file for a java project. It has a directory structure look like this: src folder [INDENT]-package1[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] [INDENT]-package2[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] [INDENT]-package3[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] [INDENT]-package4[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] I am new to makefile, but tried to create one according to some tutorials on …

Member Avatar for darangho
0
365
Member Avatar for aman rathi

The below code is showing error i checked lots of time didn't find any error please help me. [CODE] class emp{ int id,sal; String name; emp(int id,int sal,String name) { this.id=id; this.sal=sal; this.name=name; } void show() { System.out.println("Name: "+name); System.out.println("Salary: "+sal); System.out.println("ID: "+id); } } class manager extends emp{ int …

Member Avatar for aman rathi
0
192
Member Avatar for ians_acess

hi there im just new with java i just want to ask can 1 dialog box contain multiple lines i min like this one JOptionPane.showMessageDialog (null,"\n "+EN ) ; somehow i want to add just like JOptionPane.showMessageDialog (null,"\n "+EN , "\n another messages here then" +DR , "\n and another …

Member Avatar for NormR1
0
178
Member Avatar for hamiltino

Can someone help me and complete this simple polynomial program(can be demonstrated using linked lists); [CODE]public class Polynomial { /* Constructs a new polynomial of degree zero */ public Polynomial() { } /* Returns an integer representing the coefficient * of the x^power term */ int getCoefficients(int power) { } …

Member Avatar for JeffGrigg
0
197
Member Avatar for sarathsshanker

what is the meaning of org.apache.jasper.JasperException: /carsar.jsp(1,1) The value for the useBean class attribute com.sarath.cars.CarBean is invalid. error?

Member Avatar for bibiki
0
58
Member Avatar for C+Marshall

Hi; I've been working on this for 2 days now and am hoping someone give me a tip. New to Java code so bear with me. I need to create 2 panels in a frame. Each frame must contain 2 images. Frame 1 must be a fixed width allowing the …

Member Avatar for manoglobal@gmai
0
562
Member Avatar for Genericusername

Hello, I am working on a program that generates 100 random integers and then sorts them into even and odd. When i go to compile the program, it tells me that it cannot find variables randonum, evennum, and oddnum. I'm new to arrays so i'm guessing i declared/ defined them …

Member Avatar for Zetlin
0
240

The End.