473,614 Members | 2,377 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.
21
1,637
thread by: SpecialKay | last post Apr 19 '08 by: sukatoa
i have a menu bar, when i run the code the first time everything is fine. If i click on the screen i print a Circle or a Square, store the shape in an arraylist and repaint the frame. When the frame repaints the menuBar gets painted again under the orignal. Any ideas? public class X2Frame extends JFrame { private JMenuBar menuBar = new...
21
5,775
thread by: uhdam | last post Mar 29 '09 by: JosAH
Hi.... How to generate Tree with Data from XML as Input. I use Netbeans and i tried generting a tree using DefaultMutableTree node and inputs mentioned in same pane like, DefaultMutableTreeNode classname1=new DefaultMutableTreeNode("CLASSNAME1"); But netbeans displays only the empty pane and no tree...
21
11,050
thread by: kokababu | last post Apr 28 '09 by: dmjpro
Hi I have to insert multiple rows into a Table. I am inserting rows using addBatch and executeBatch. Each row has 5 columns. Four columns of each row contain same value except last column. So I am using for loop to set the last column value. I am using JDK1.5, DB2 and WAS6.1. My connection is OK and setAutoCommit sets as false.
21
3,817
thread by: blehhhhh | last post May 7 '10 by: jkmyoung
So I'm trying to work on this problem of deck of cards wherein I have a few classes along with a tester class. Everything else is done. I just need help with implementing the methods properly. Here's how the thing goes: I'm given the classes Suit.java, PlayingCard.java, FaceCard.java, NumberCard.java, Deck.java, CardTest.java //Suit.java ...
22
2,562
thread by: JavaJunkie | last post Jul 17 '05 by: JavaJunkie
When I got the following posting on Monster.com I almost puked. See http://jobsearch.monster.com/getjob.asp?JobID=20663147 They want candidates from IIT (Indian Institute of Technology) / REC (Regional Engineering College). So I guess MIT is not good enough anymore? ------------------------ Job Description
22
8,748
thread by: gonzales38 | last post Mar 2 '07 by: r035198x
Dear All, I am a beginner in Java and would need your assistance with this assignment. I have started PART A but I am not sure about how to proceed with PART B as we've not been taught and I dont know it either. Submission is on Friday 2nd February 2007. I await your responses Rgds Gonzzy
22
2,158
nomad
thread by: nomad | last post Apr 2 '07 by: nomad
I have a question in which I want to run my java program. I'm using Eclipse as my application. When I want to run my program I do a right-click on the mouse and choose Run as (arrow down to) run... A Window called Run shows on the screen. In the Main class: I have a chose to make by pushing the Search...button In doing so I have a list of...
22
6,070
thread by: mira88 | last post Jun 8 '07 by: blazedaces
Hi, I'm new to java and would like to know how to take several command line arguments and sum them . I have done so for two numbers- but don't know how to go on. Thanks public class TwoNumbers { public static void main(String args){ int first_number = Integer.parseInt(args); int second_number =...
22
41,001
oll3i
thread by: oll3i | last post Jun 11 '07 by: JosAH
i get Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2 at Producent.main(producent.java:605) when i run it from bat @start "Supply Chain Management-Producer to Queue" run Producent queue1 queue2 queue3 queue4 maybe you will se something i dont see
22
5,413
thread by: anubhav vij | last post Jun 21 '07 by: anubhav vij
how to open an ms office application either .doc,.xls,etc in java?? i m new at java so don't know how to open a .doc or .txt file using java .
22
1,450
thread by: pucca | last post Jul 19 '07 by: JosAH
Hi !! This is my for loop: Shape shapes=new Shape; for(int i=0;i<shapes.length;i++) { System.out.println("\n"); shapes.printState(); area+=shapes.area(); System.out.println(area);
22
6,916
thread by: rajesh025 | last post Aug 17 '07 by: JosAH
hello, i am storing the more than 1 lac data in string buffer, it gives the errro java heap size now , i increase that hepa size , but still is giving error, plz. tell me how i display the whole record at once time rajesh as earliest as possibel
22
20,723
thread by: bela | last post Sep 6 '07 by: madhoriya22
Hello, I am very new to JAVA. I would like to know, how to read *.csv file from java and how to save that data into an array. regards, bela
22
1,658
thread by: Daveyyy | last post Sep 12 '07 by: JosAH
Hi! I am not new to java by any means. But there is an error code which I have had described as a corrupt installation. I am a student and everyone else in the class seems to have had no issues with their install. Here is the code: // Program Name: Welcome // Program Description: A simple program that prints a welcome statement to...
22
3,586
eyeofsoul
thread by: eyeofsoul | last post Sep 19 '07 by: eyeofsoul
i am working in copying file to other destination.my code doesnt work as expected.can anybody help me.i got this error message ---> java.io.FileNotFoundException: C:\Documents and Settings\XXXXXXX\My Documents (Access is denied) at java.io.FileOutputStream.open(Native Method) at...
22
1,903
thread by: ajos | last post Oct 31 '07 by: ajos
Hi friends, I am trying to implement a factory design pattern.I'm quite confused on how to put it down here.Let me try.I have certain html option containing values like example---> <html:select property="branch" size="1"> <html:option value="California"></html:option> <html:option value="New York"></html:option> and so...
22
5,873
thread by: Energizer100 | last post Dec 26 '07 by: BigDaddyLH
Hey. I'm having some difficulty in Array lists. I have to find the average of all the numbers in an array list. That's my first task. My second one is to find the mode of all the numbers, meaning the number that shows up the most. And the third one is to find a standard deviation, which I will get to later. Anyway, right now I'm doing Average. ...
22
3,062
thread by: kenrocks | last post Nov 14 '08 by: JosAH
can u guys show me an example of how to make gui pop-ups..thx :)
22
9,654
thread by: puneetsardana88 | last post Oct 7 '09 by: myusernotyours
Suppose we have a real number...We dnt know what it was defined...How can we determine that it is float or double?
23
3,639
thread by: BlackHawke | last post Jul 17 '05 by: Grant Wagner
Hello! This is my second post. Ppl really helped me with the first. I hope there are answers for this one as well I own a game company (www.aepoxgames.net) releasing the beta for our first sci-fi space game in about 2 weeks (www.andromedaonline.net) We have multiple servers, but the game engine (Game Server Program) is a Java program...
23
3,557
thread by: Naha | last post Feb 20 '07 by: r035198x
Hi Guys, I am trying to print lines of data from a text file on to a webapge using jsps. but i can not get the while loop to work. Can Someone help me please??? code is below: package testBean; import java.io.*;
23
2,511
thread by: ria3 | last post Apr 10 '07 by: JosAH
Hi, How can I count the the number of times a specific letter like b occurs in a string? Thank you!!!
23
1,957
thread by: no1zson | last post Aug 1 '07 by: JosAH
I have been adding buttons to my GUI to manipulate list data. I added a Delete button this morning in case I decide I no longer needed a particular element. I am now working on a modify button, in case I want to keep the element, but only modify a field or two. This seemed easy after my Delete, but now I am having issues with it. Is there a...
23
4,456
Misaio
thread by: Misaio | last post Mar 8 '10 by: pbrockway2
I am a beginner programmer and am having trouble with constructors and sorts. What's worse is that I am not used to programming in two different classes. It's making my head spin looking back and forth trying to trace the different names. The idea behind the project is that I'm going to have two sets of arrays. One with item names and the...
24
7,386
thread by: crazystone82 | last post Dec 13 '06 by: crazystone82
Hi all, please send me a source code to transfer a file to a server running on another pc in the LAN...using JAVA .By getting the source path and destination path through textfield implemented in java swings

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.