minimize all frames

1327 byte By kent_emiaa at 2007-10-1 0:23:50
i've got a program running, which if one of the window is being minimized all of the opened windows which is opeened will be minimized, and if clicked ffrom the taskbar all will be restored .. here is the code .... private void iconifyAllWindows(int state){int iterator;//Returns an array ...

Jar Distribution

303 byte By chijavaa at 2007-10-1 0:23:52
I抳e gotten a jar working on my system to where I double click and it runs my program but when I try to send it to some of my friends it doesn抰 work. My question is what files do I have to include and how do I have to change my manifest so that it will work without any configuration on their ...

The best way for moving from Java To JSP....

844 byte By _java_son_a at 2007-10-1 0:24:00
Hello Guys , Actually i am New to Java Technology and i Love it very much , i am trying to do my best ... i Understand it , it`s Logical for me , as you told you i`m New to Java Technology and i wanna learn JSP as soon as i can , because i have to do the commercial Project "Website" for my ...

Help with this problem Super classes and sub classes

1087 byte By Rossya at 2007-10-1 0:24:09
Im having a little trouble with some homework here. I have a super class called RossHW6Account and a subclass called RossHW6SavingsAccount. If you look at the code below, i create a new account when the user presses the new account button. That seems to be all fine and good, but a couple of ...

Best Product

157 byte By borninblooda at 2007-10-1 0:25:10
What is the best product to use when making a java program. At the moment I am using the free version of JCreator and I have yet to try anything else.

Display a card image

507 byte By Royboy50a at 2007-10-1 0:25:49
I am attempting to assign an image to a card object as an attribute, so that when the method card1.getImage() is invoked the cards image is displayed in a JPanel. I have rank, value & suit attributes already for the card class.My current application can display the cards attributes in ...

what will be the output

1249 byte By insouciant79a at 2007-10-1 0:26:03
public class A>{>int x=2;>public void f()> {> System.out.println("its A"+ x);> }>}>class B extends A> {> int y;> public void f()> {> System.out.println("its B");> }> public static void main(String args[])> {> A a = new B();>a.f();> ...

data base books

129 byte By nokia2300a at 2007-10-1 0:26:19
ineed books for java special for java odbc and control databases from java and sql statements how we can writ them please!

Exception in thread "main" java.lang.NoClassDefFoundError: FancyButton

93 byte By zonomea at 2007-10-1 0:26:25
I keep getting this error when trying to execute a .class file. What am I doing wrong?

Java Web Start Application Manager

1864 byte By ric12stringa at 2007-10-1 0:27:12
I recently received a notification in my Desktop tray that stated "Java updates available". Thinking that this was a legitimate notification, much like those that I receive from Microsoft, I clicked on it and downloaded what I believed were going to be typical Java updates. However, now that I ...

Event Queue

816 byte By filestreama at 2007-10-1 0:27:20
At this time of the year, there are lots of holiday events in our personal queues.Therefore I would like to share this party recipe with everyone.SUNDRIED TOMATO SALSA1 cup chopped sundried tomatoes1/3 cup olive oil1/4 cup balsamic vinegar2 tablespoons minced garlic1 red onion, minced1/2 ...

Close and restart an application from within the application?

464 byte By johnnyhall81a at 2007-10-1 0:27:30
Is it possible to shut down the current application and restart it from within itself i.e.Client(){......if (restart == true){new Client( ...

JTable + changing data

677 byte By cecTheva at 2007-10-1 0:27:33
Another JTable question. Theres many threads about JTable and im wondering what is the better method to display changing data. for example the JTable could be a front end for a series of records and it would be possible to click through them.My program creates a table which implements ...

Missing components when using a background image

1330 byte By gary.dcca at 2007-10-1 0:27:37
I have loaded an image to cover the entire background of a JFrame using mediaTracker. The image displays fine. However, the top Menu Bar only shows when I pass the mouse over it and any components I've placed on the JFrame do the same thing. Partial code below for brevity.Thanks for any ...

General programing question

101 byte By Iluvatara at 2007-10-1 0:27:39
What code do I use when I want to show a *.txt or simple text in a JFrame window?Thanks

General programing question

101 byte By Iluvatara at 2007-10-1 0:27:40
What code do I use when I want to show a *.txt or simple text in a JFrame window?Thanks

Cannot resolve symbol

1008 byte By ramsowa at 2007-10-1 0:27:54
Hi I am new to J2EE and I am trying to create a simple Hello World applicationI have created Servlet, Home, remote and Session bean and put them all under one folder. And I have created JSP file which is under another folder. Now if I try to import the Servlet class in my JSP file I am getting ...

Swing application crashes in while loop

2400 byte By johnnyhall81a at 2007-10-1 0:27:57
The following code is a fragment from a battleships game using Swing.Once the user has placed all their ships on the board, this function is called. The problem is, it does not allow the user to guess the computers ships location. When a location on the comkputers grid is clicked nothing ...

illustrating a stack of an unknown size in a JScrollPane

742 byte By levi@th@na at 2007-10-1 0:28:30
I designed a maze generation/traversal program and I want to show what happens to the stack in the depth first algorithms that I used. I have a JFrame with a JPanel containing the maze and to the right of the JPanel is a JScrollPane to hold the stack illustration. I have a JPanel inside the ...

How to make my object to wait for server response

488 byte By babu-ha at 2007-10-1 0:28:35
Hi ,I need some one suggestions on thread concepts.First Let me know my scenario is fit for thread concept.is it possible then how I can reach to solution.I have scenario like I send a request to server and server is taking some time to process the request.if I am calling the method on server ...

writing data to an html file

482 byte By puf_the_majic_dragona at 2007-10-1 0:28:36
I'm writing a program that takes input from txt files then generates an output based on user selections. I want to write that output to an HTML file so the user can save it and print it easily in an organized format on any platform. the html file will be pretty complex, involving css and ...

Proper way to distribute sample code?

327 byte By stempba at 2007-10-1 0:28:39
I am about to release my first java package.What is the proper way to distribute the sample code?Should I place the source code in a jar file? Or a zip file? Yes I realize that a jar file is just a zip file but should my sample code have a zip or jar extension? Or maybe I should not put them in ...

Help Regarding JAXB

187 byte By happymunaa at 2007-10-1 0:29:01
How can I bind schema or DTD through Java Code. Can anybody say where to pass the schema or DTD as parameter to get the related classes or interfaces.Regardshappymuna

What is an executable class

80 byte By insouciant79a at 2007-10-1 0:29:20
What is an executable class in java. Can someone explain with an example?

Exception- Connection reset by peer: JVM_recv in socket input stream

1143 byte By vasaninj1981a at 2007-10-1 0:29:36
Hello Friends this is my program: I am getting an exception after receiving a single packet from the server.//This program listens the server and gets the orders with more than one itemimport java.net.Socket;import java.net.ServerSocket;import java.io.DataInputStream;import ...

Digital clock which randomly selects different colors from Applet

1279 byte By Zipeeea at 2007-10-1 0:29:51
Hi,I relatively new to java, what I'm trying to do is list about five colours in my Applet and pass the colours into my java code, and maybe the font.....I want to be able to Display a digital clock which randomly selects different colours which were passed from my AppletThanks for any ...

start java app from a jsp or a servlet?

239 byte By gauri18a at 2007-10-1 0:30:07
HI , I want to know if it possible to start a java application using Runtime and exec(command). I mean launch abc.java from abcservlet or from abclaunch.jsp (with a button click) any exmaples ? thanks,-G.

how to swap two numbers in java

1773 byte By new_techa at 2007-10-1 0:30:39
i have an idea in c but i don't know in java..somenoe like to share their idea i appreciate a lot...here is a sample code in c...hope u can help me in java.....thanks a lot ....#include<stdio.h>void swap(int x, int y){int temp;temp=x;x=y;y=temp;} void main(void) {int x=10,y=20;clrscr(); ...

Getting an array from another class

519 byte By WildHearta at 2007-10-1 0:30:51
Hi everyone, im new to the forum so i hope i posted this in the write place? Need a little help as soon as from anyone abled and willing to give a little guidance.I have created a GUI which needs to find a record from an array. The array and its records are in a different class. So... How do i ...

About JFrame

191 byte By arifasla at 2007-10-1 0:31:04
Dear Expert,A button named button1. If I Click this button then another JFrame window will be open. Please, send me just a line code for opening another JFrame window. Please...

should I use this to always refer to my member variables?

303 byte By at 2007-10-1 0:31:22
I read in a book that one should refer to all member variables using this. Yet I find from the segments of code I have seen thus far that most people don't follow this convention. So should I always use this, or shouldn't I? Could I possibly be marked down by my project supervisor if I ...

should I use this to always refer to my member variables?

303 byte By at 2007-10-1 0:31:23
I read in a book that one should refer to all member variables using this. Yet I find from the segments of code I have seen thus far that most people don't follow this convention. So should I always use this, or shouldn't I? Could I possibly be marked down by my project supervisor if I ...

how to include alt tags in Javascript

241 byte By lynnkeena at 2007-10-1 0:31:26
how do I get the javascript in my navigation menu to be read from an external file (java include)?I've never learned how to create an external file so I'm a little hazy on how to accomplish this task.Thanks!Lynn

Java or C++ First?

159 byte By LRenee68a at 2007-10-1 0:31:31
I want to learn Java, C, C#, C++ but not sure where to start? Can anyone give me some advise on this issue?Thanks in advance.Laurie

maxIdle parameter - beginner needs clarification

1325 byte By punnkdorka at 2007-10-1 0:31:42
server.xml................................maxActive="5" maxIdle="1" maxWait="10000" removeAbandoned="true"removeAbandonedTimeout="10" logAbandoned="true"I am still slightly confused by the following parameters( maxIdle and removeAbondoned). I need some clarification, please.When I set maxIdle ...

programming technique query

809 byte By cecTheva at 2007-10-1 0:31:50
This something which has been bugging me a long time, i'd like to know if im doing things right or wrong.Look at this method, each time this method is called a new myOb will be created.private void produce(){myObb myOb = new myObb();}and the alternative myObb myOb;private void produce(){myOb = ...

java exe

165 byte By hanischafa at 2007-10-1 0:31:59
is it possible to compile java into an executable, so that i don't have to "java mymainclass" and keep a bunch of classes together (i'd rather just 1 file).

Store password

302 byte By solutionseekera at 2007-10-1 0:32:32
I want to store username and password in file... but I want to make sure no one reads it....If password is set from the form then it should encrypt or something and put it in file. Then it shld decrypt to check if person has entered it correctly.Is there anything in java for ...

Help required on OutOfMemoryException

739 byte By vishu.gautama at 2007-10-1 0:32:49
Hi AllI have a requirement to store around 2 million values in a java Set Object. I need to update this object by appending a new value from time to time during the execution of the code. Also, this value may be accessed time and again to check if exists. Basically I need insert and search ...

Converting array record to a string?

918 byte By WildHearta at 2007-10-1 0:32:57
Hi all in need of a little help please. Im using an iterator to search through an array to find a record (a record is a String, int, int) that has a String that matches the String (recordIn) by the method.public void setRecord(String recordIn) // recordIn collected from a JTextField{ ...

Externally entering data

680 byte By greatgreybeasta at 2007-10-1 0:33:01
Hi, I'm new here and just learning Java and know a fair amount about HTML so I'm looking for help on a project I'm trying to accomplish. I need to create a page that will allow a band to update information easily from the road. Something like a text box on a hidden page that they can go to, ...

classes in separate units

461 byte By sunlnka at 2007-10-1 0:33:09
What is the logic behind the separation of classes in separate units?I am asking because it has happened to have an applet with several classes in one unit and the virtual machine could not find the classes. I separated the classes into different units and it worked fine.But in some cases ...

Sax parser and SSLHandshakeException

8554 byte By mohadib_a at 2007-10-1 0:33:11
Hello, I am trying to parse some xml that I have in a string using the classes below.When I call parser.parse(source) a SSLHandshakeException is thrown. Could some oneplease tell me what I'm doing wrong.thanks,jdimport org.xml.sax.SAXException;import org.xml.sax.XMLReader;import ...

general programing question

325 byte By Isil_Gara at 2007-10-1 0:33:26
I have this code:JFrame j=new JFrame("Ol?);j.show();j.setBounds(0, 0, 350, 350);j.setBackground(java.awt.Color.white);It creats a window.What do I do so that I can open a text box in that window where I show some ...

swing frame problem

4175 byte By israfela at 2007-10-1 0:33:31
hi everyone,im still really poor at java at this error is coming up with my code that i just can't seem to sort out. basically im trying to do my own basic rmi chat system (without great success). when i launch my swing frame i enter the ip address as an arg on the commandline for this it ...

general

251 byte By Isil_Gara at 2007-10-1 0:33:33
how do i open a text field in a window like this:JFrame j=new JFrame("Ol?);j.show();j.setBounds(0, 0, 350, 350);j.setBackground(java.awt.Color.white);?

Convert Temperature

100 byte By wash_ema at 2007-10-1 0:33:55
I am trying to write a program to convert celsius to fahrenhiet using command line arguements

Threads

209 byte By wash_ema at 2007-10-1 0:33:57
I am writing a shopping cart program. I am having trouble connecting to an access database. whenever i run it. It just states that it doesn't connect & it doesnt recognize the name of the databasse

Threads

209 byte By wash_ema at 2007-10-1 0:34:04
I am writing a shopping cart program. I am having trouble connecting to an access database. whenever i run it. It just states that it doesn't connect & it doesnt recognize the name of the databasse

Multithreading efficiency

838 byte By Ewan_Sinclaira at 2007-10-1 0:34:16
I've got an app that creates Packet objects from network input(the fast part), then processes them(the slow part). I was just wondering how to split things up in order to attain the best performance.I was thinking that I should use three threads: One to handle incoming packets, one to store ...