473,554 Members | 3,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java Forum

Java programming language (Sun Microsystems) - Ask questions about java programming, OOP, JRE, SDK, Swing, Plugins, Java Virtual Machine(JVM), Java Libraries: Collection, XML Processing, Security, JDBC, JNDI, RMI, CORBA, AWT (GUI) and more.
19
3,388
thread by: skyblue | last post Feb 26 '07 by: r035198x
//can somebody help me with this please. i need to create a //calendar on the frame. i got the frame but the calendar is not //woking. import jpb.*; import java.awt.*; import java.awt.event.*; import java.util.*;
19
2,753
thread by: shana07 | last post Mar 9 '07 by: shana07
Good Day All! I have one problem and wish to consult...... I am using one program -mujava to create mutants. I run the program and comes out this: MyProgram.java class containts 'static void main() method. Please note that mutants are not generated for the 'static void main()' method. How to solve this problem or how am I supposed to...
19
1,744
oll3i
thread by: oll3i | last post Mar 14 '07 by: oll3i
cd anyone help me i need to find a pattern in a file and replace it with new value the pattern is a double
19
6,434
thread by: shana07 | last post Mar 22 '07 by: shana07
I don't understand about this program is doing. Could someone please tell me what it is about. Because I have gcd function in one program that calls this function. Thanks a lot switch (opcode) { case GCD: out = b1.gcd(b2).toString(); break; /** * Returns a BigInteger whose value is the greatest common...
19
16,872
thread by: r035198x | last post Oct 30 '08 by: chaarmann
The program below simply reads a file called FileTest1.java(itself) and prints it to the console import java.util.Scanner; import java.io.*; class FileTest1 { public static void main(String args) { Scanner inputFile = null; try {
19
2,427
thread by: sandyw | last post Apr 27 '07 by: sandyw
I have a question for Eclipse user. I have a PC at work and a Mac at home. Do you know if these two operate differently. ie for instance the Scanner seems to operate differently. printf is diffrent. Maybe that is one reason I can not figure why my projects are not working right. sandy
19
4,784
thread by: JosAH | last post Jun 7 '07 by: blazedaces
I noticed that a lot of posters don't read or can't read the JDK 6 documentation with all it's core classes neatly explained. May I suggest that at the least put this link in your bookmarks or favorites list and pay attention to the link on that page in the top right corner: you can even download the entire thing which is extremely handy...
19
3,029
thread by: uthornsfan1995 | last post Jun 22 '07 by: blazedaces
I try to use a feature on my banking website which uses Java. Every time I try to use it, it gives me a "Java Runtime Environment can not be loaded" error. Then I try to download Java, and it gives me a "Several Java virtual machines running in the same process caused an error." Can someone please tell me how to fix this?? I need to scan...
19
3,756
thread by: AtulTiwari | last post Jun 28 '07 by: JosAH
Can any one here who tell me that why we can not Declare a class or Interface as Private or Protected. I have just compiled a class as private class abc{ } then the compiler throw an error that private is not allowed here So can any one plz explain me the reason behind that?
19
17,346
dmjpro
thread by: dmjpro | last post Sep 21 '07 by: JosAH
Please Help! I found it for Solaris and Linux but for windows I didn't. Please Help! Kind regards, Dmjpro.
19
2,351
thread by: sugard | last post Sep 25 '07 by: JosAH
I need to access some data which is in an abstract class. Though you cannot inistialise an abstract class. The task to do is gathering data from a textfile where data is in this format.. P Charles Galea 134 Where my class needs to check if the first letter is a P it do the stuff in the professors class and if it is an S it do the stuff...
19
7,312
thread by: zildjian | last post Feb 22 '10 by: valce
Hello, I have a problem. I use SWT to make GUI. In the main window I have drawed some images (canvas, gc on canvas) and pressing a button will appear a new window. When I I move the new window over the main window the images will disappear. Why ? Sorry for my english :) I hope that you will understand. Thank you Carmine
19
8,247
thread by: lost1 | last post Oct 21 '08 by: Nepomuk
Can someone point me in the right direction on how to get the triangle type to display. Below is a triangle class that is tested by another completely separate class. The main method of the test class executes the code you see below. What I'm trying to figure out is what I'm doing wrong in getting the triangle type to print. the integers typed...
19
2,768
thread by: mumbaimacro | last post Nov 7 '07 by: mumbaimacro
dear all i am n a situation to display from a int value into Time format, is there any possiblity of using existing java util classes? or i need to rite my own class? kindly help me to get a sloution ,
19
4,368
thread by: NycCraze88 | last post Dec 18 '07 by: BigDaddyLH
Hey all, I'm in a Java data structures class in college and I have a problem with this one sorting assignment. I'm not very experienced in java and have tried tackling this assignment in an assortment of ways but have failed miserably. Basically, here is the assignment::: ========================================================...
19
20,223
thread by: robtyketto | last post Mar 16 '08 by: chaarmann
Greetings, I have the following code below which allows the date to be added via a JDBC connection as a STRING. The value of dateString is inserted into the MS ACCESS database. What is the easiest method to add the current date/time (dd/mm/yy hh:mm:ss) via JDBC in DATE format i.e. convert STRING to DATE or format the DATE without...
19
1,666
thread by: jonjon0688 | last post Mar 26 '08 by: JosAH
Using the countChars() method from the previous answer, write a method called fileSize() declared as follows: public int fileSize (String name) { ... } which counts the number of characters in the file whose name is supplied as the "name" parameter. This method should return the number of characters in the file, or -1 if an...
19
1,177
thread by: shirsa | last post Mar 28 '08 by: JosAH
what is the correct answer of thes question.... public class par { public static void main (String args) { int i=0; addtwo(i++) system.out.println(i);
19
1,963
thread by: sukatoa | last post Jul 28 '08 by: JosAH
I have a class file that instantiates an object from a jar file or simply a class file inside the jar file is used as part of the simple program.... When we use the the jar file in JSP, we simply put the complete filepath of the class files inside the manifest file(Name:) an enable the Java-Bean setting( set to true) then solved....(ready to...
19
2,133
thread by: uhdam | last post Mar 29 '09 by: JosAH
Hai... I need to have image as tooltip. Is it possible. If yes how. I dont want to use applet. When i scroll over the label in my frame the pop up containing the image should be displayed. How can this be done. And how can multi line tool tip texts be given. I use Netbeans IDE. If i enter the text in the Column "ToolTip Text" only the text...
20
2,320
thread by: Joe Blow | last post Jul 17 '05 by: Jared Dykstra
Everybody hates multiposting right? Everyone knows about it, and some people do it regardless... what i hate is when instead of answering a question in the group... you get 3 or 4 responses of "DON"T MULTIPOST" Wow... why don't you stop being a suck and post something helpful... I've been viewing a handfull of newsgroups for the past...
20
4,625
thread by: Bill DeWitt | last post Jan 21 '07 by: Marc
I downloaded the Sun product, and find it feature rich but slow. Can someone recommend a more basic (freeware) IDE which will help a newbie without hiding every bit of code? I can program my way out of a wet paper bag in a few languages, but want to by-pass some of the learning curve for this project.
20
3,678
JavaStudent07
thread by: JavaStudent07 | last post Feb 7 '07 by: JavaStudent07
If you know anything about "Bubble Sorts" please leave it here, the teacher said, "Use bubble sort to sort numbers into decreasing numerical value." Then she started eating lunch and said we were on our own...LAME
20
7,752
thread by: javaman90 | last post Jun 8 '09 by: RedSon
i am trying to make a penny pitch game. the sum is returned at the end of the game and the player has 2 options: toss and quit. the program does this when the toss option is clicked: generates two random numbers from teh row n column toss, add number at this position to the running total, and displays the board replacing the numbers with P's...
20
3,701
thread by: fatfatpopo | last post Jun 29 '07 by: fatfatpopo
Anyone who understand the codes below, can you please kindly explain to me by adding comments.. thanks in advance // <applet code="ImageSlider" width="400" height="400"></applet> import java.awt.*; import java.awt.image.BufferedImage; import java.io.*; import javax.imageio.ImageIO; import javax.swing.*;

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.