35,618 Topics

Member Avatar for
Member Avatar for BestJewSinceJC

I'm using netbeans and I have a problem. I'm using a card layout to flip between multiple windows. Two of these windows are wider than the others, and this cannot really be helped. Ideally, it would be best to design each window so that they are all the same size, …

0
62
Member Avatar for Gman36

Hi All, As you've probably read a million times, I am a newbie to java programming and need some help with uni assignment. I need to know how to numerical update a Textarea by clicking on a button. This would be a lot simplier if I could do it one …

Member Avatar for VernonDozier
1
191
Member Avatar for wedunnit

I am an infant attempting to learn to crawl through Java. I have been learning for just over four weeks now, and have been doing relatively well. However, I am now on arrays, and find myself not only floundering, but drowning! My text seems extremely difficult to understand, and I …

Member Avatar for BestJewSinceJC
0
101
Member Avatar for ahoest

Hey all, My program creates panels with textfields. The actual goal is to draw lines between the textfields. But i'm stuck way before that stage. I can draw lines with the button connection lines and you click on two points and it draws a line. The 2 problems I have …

Member Avatar for ahoest
0
521
Member Avatar for Rastabot

Hey , for my class I have to create an Infinite Integer class which holds can hold a really, really large integer using a doubly linked list. It holds 3 integers per node, so 5,697,343 would be held like [5] [697] [343]. I implemented my constructor and toString method fine, …

Member Avatar for ~s.o.s~
0
332
Member Avatar for adityam4444

Hello Everybody I want to use Gzip compression in my web application which is under construction. I am developing it in Struts and I want to know how to use Gzip in Struts. As Gzip concept is very new for me, it will be better if a little detailed explanation …

Member Avatar for ~s.o.s~
0
82
Member Avatar for shivarajM

I am doing project in linux platform, I have written codings in shell script & I want to design interface for it in JAVA Can I opt Java(Swings) as Front end for shell script, which is my back end..... Please help as quickly as possible.............I am waiting for ur reply.......... …

Member Avatar for Ezzaral
0
35
Member Avatar for bahr_alhalak

How r u every body. I have some qoustions: 1)What is the difference between an instance data field and a static data field?? 2) Also I have assignment and i wont to add txt on text area and when add new one txt it must appear in next line of …

Member Avatar for digirandi
0
102
Member Avatar for Atomika3000

I am getting further with my Property to let program, but i need help working out the above error, it happens when the user selects the option to delete a property from the text file. The user is supposed to be able to enter in a number and that deletes …

Member Avatar for Atomika3000
0
107
Member Avatar for Atomika3000

I've got to make a Property To Let program that can allow the user to add, view or delete property details to and from a text file. I have done the add and view part but i am having trouble getting the delete working. I've managed to get it to …

Member Avatar for Atomika3000
0
139
Member Avatar for LanierWexford

I am a EE student who took some C++ classes and is not trying to learn Java. I like to write my code in Notebook++ and want to know how to run in from the Cmd Promt. I was using Netbean, but I do not like all the code it …

Member Avatar for jbennet
0
125
Member Avatar for adnana1024

I have a program to write in which I need to create the following fractal pattern using recursion: [img]http://img19.imageshack.us/img19/7456/73284540.png[/img] ^image link My professor said two recursive calls are needed, and 2 parameters are also needed. One parameter indicates the indentation of the leftmost line, while the other indicates the number …

Member Avatar for BestJewSinceJC
0
124
Member Avatar for Raymoneto

Pls assist me in graph programming in java, how to draw graphs, scale graph and other stuffs of graph

Member Avatar for MoZo1
0
125
Member Avatar for get2tk

Write a class, TimedInstantiation, which will have a toString method which returns a string of the following form: I was instantiated on 12 June 2008, 35 seconds after the previous instantiation of me. if there have been previous instantiations, but if not (that is, if we are dealing with the …

Member Avatar for javaAddict
0
109
Member Avatar for carloscarlos

When I try to print data to a file, I am getting an error dealing with security saying that I don't have permission to write to a file. Can anyone help me out? Here is the code //import packages import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.io.*; import java.util.*; import …

Member Avatar for Frickelmeier
0
110
Member Avatar for grumpty

I the program I wish to run is a search for a number in 4 threads. Its working out fine and here is the code. [CODE] import java.lang.Math; import java.lang.Thread; public class NumberFinder { public static void main(String args[]) { int target = (int) (Math.random()*1000); System.out.println("The number is " + …

Member Avatar for quuba
0
383
Member Avatar for Aamit

Hi, I want to learn spring,strut,hibernate... where i get simple and good tutorial for beginners. which framework /tools/IDE to download. or books .. what other basic language needed to learn like to learn c++ background of c please give me all details?? Thank you

Member Avatar for peter_budo
0
131
Member Avatar for hopzta

I am having a difficult time with this one line of code for my homework that is due Sun.: Modify the Inventory5 Program by adding a button to the GUI that allows the user to move to the first item, the previous item, the next item, and the last item …

Member Avatar for BestJewSinceJC
0
94
Member Avatar for compscinerd69

The programming assignment is to implement a class Purse. A purse contains a collection of coins. Each coin object must contain its name. You should not put a limit on the number of coins that a purse can hold. This program should provide the user with the ability to display …

Member Avatar for BestJewSinceJC
0
1K
Member Avatar for slimmit

I'm trying to figure the topic out. To begin, lets say I have different sets of points in a file with the following format: 2 //1st number represents number of points within set 3, 4 //following lines are points 5, 6 3 3, 4 5, 6 6, 2 ..etc I …

Member Avatar for slimmit
0
89
Member Avatar for redmaverick

I am trying to execute this program, but I am getting errors this is the code [CODE] import java.util.*; public class DateUtils { static final int MILLS_IN_DAY = 24*60*60*1000; public static Date getCurrentDate() { GregorianCalendar currentDate = new GregorianCalendar(); currentDate.set(Calendar.HOUR,0); currentDate.set(Calendar.MINUTE,0); currentDate.set(Calendar.SECOND,0); return currentDate.getTime(); } public static Date createDate(int year, …

Member Avatar for redmaverick
-1
288
Member Avatar for zyaday

How do I creat one in JAVA? Is there a tool I can use in netbeans? thanks a lot..

0
86
Member Avatar for javaAddict

Just a quick question. No rush to answer, it is not important, I might discover it later myself, but just in case someone knows it: I have been trying to create a [URL="http://java.sun.com/javase/6/docs/api/java/lang/reflect/Method.html"]Method[/URL] object using this method: [URL="http://java.sun.com/javase/6/docs/api/java/lang/Class.html#getMethod(java.lang.String,%20java.lang.Class...)"]Class.getMethod(String name, Class<?>... parameterTypes)[/URL] like this: [CODE] obj.getClass().getMethod(methodName, Class.forName(methodType)) [/CODE] My problem is …

Member Avatar for javaAddict
0
148
Member Avatar for satin

HI.. Is there any tool available for creating an installable version of my web application which will ask for to bind tomcat , mysql with my application. So my final exe wil contain my web application,tomcat and mysql related files.

Member Avatar for peter_budo
0
102
Member Avatar for BestJewSinceJC

How can I check if an event is user generated? When the user clicks on a combo box and changes the displayed/selected content, I want the code in the itemStateChanged method to be executed. But I only want this code to be executed if the method call was due to …

Member Avatar for BestJewSinceJC
0
95
Member Avatar for aunahal2

Hi, I have been spending several weeks figuring this out but couldn`t find way to it. Here is what I am planning to do, I have a text file with several data in it, and I have to extract part of the data into a 2 dimensional array. Here is …

Member Avatar for VernonDozier
0
197
Member Avatar for BestJewSinceJC

[CODE=Java]java.util.Vector<EmergencyContacts.ContactInfo> contacts = Application.getPatient().readEmergencyContacts().readContactInfos(); for (int i = 0; i < contacts.size(); i++){ EmergencyContacts.ContactInfo info = contacts.get(i); } public Vector<ContactInfo> readContactInfos(){ return contacts; } private Vector<ContactInfo> contacts = new Vector<ContactInfo>(); [/CODE] As you can see, it returns a Vector of ContactInfo. Why would I be getting an error saying, "Exception …

Member Avatar for quuba
0
132
Member Avatar for RaniThomas

Hi all, I need a help from u... Please help me... Is it possible to have more than 1 servlet for an J2EE application... I have 2 JSP's (index & display page) 1 Servlet (myServlet) - Db Connectivity(insertion & selection) In index.jsp, i have 2 fields and a button, while …

Member Avatar for RaniThomas
0
2K
Member Avatar for KingsKidy

Hi All. Please I need your help. I have just started work as a Software Engr. I have a project at hand which includes placing different image icons on a JLabel component depending on which element of a JList is selected. I used single selection model. I tried using if-else …

Member Avatar for Ezzaral
0
115
Member Avatar for fr000nc

Hello all, I have an curious situation here: Let's say there is a web site using java applets (a very old one with all graphical primitives written from scratch). The problem affects several out of many machines (all Windows) connecting to the site. The problem is that when I open …

0
49

The End.