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 ...
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 ...
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 ...
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 ...
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.
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 ...
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();> ...
ineed books for java special for java odbc and control databases from java and sql statements how we can writ them please!
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?
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 ...
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 ...
Is it possible to shut down the current application and restart it from within itself i.e.Client(){......if (restart == true){new Client( ...
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 ...
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 ...
What code do I use when I want to show a *.txt or simple text in a JFrame window?Thanks
What code do I use when I want to show a *.txt or simple text in a JFrame window?Thanks
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 in java. Can someone explain with an example?
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 ...
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 ...
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.
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(); ...
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 ...
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...
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 ...
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 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
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
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 ...
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 = ...
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).
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 ...
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 ...
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{ ...
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, ...
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 ...
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 ...
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 ...
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 ...
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);?
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
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
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
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 ...