12986 byte By
magic507 at 2007-11-20 8:31:32
I am new to Java and could use some help with my program. The program has two classes, accepts the inputs of commission percentage, exchange rates, and amount values (via JOptionPane windows), and outputs to a file and to a JOptionPane window.I ran the program and received: Exception in thread "mai...
190 byte By
aneird at 2007-11-20 8:31:51
is it suitable for jsp?<br/>is it a good or mature business model?<br/>please tell me some good forums about businesses!<br/> thanks a lot
2533 byte By
magic507 at 2007-11-20 8:32:09
I have a method which opens an input dialog window to obtain a double value which is returned by the method (FIRST code below) When the main method executes, I call the input obtaining method to obtain the input and then I want to instantiate an object of another class with the parameter being the v...
Hello everyone. I am writing an application that SHOULD be very easy to implement. I am loading data from an xml file that will determine the content on my swing form. I need to make an nX2 table.For exampleLabel CheckBoxLabel TextFieldLabel CheckBoxLabel TextFieldLabel DropDownLab...
A couple of years ago, I heard that the internet's "free counters" "were not very good".Yet, I tried a couple of them, because they promised to tell me the visiting IPs' country of origin - something my host company's counter was not already doing.Both of the free counters required me...
2551 byte By
vivendi at 2007-11-20 8:32:28
Hello, im trying to connect to a remote database but i keep getting errors when i compile my code.I have the following code:package mysql;import java.sql.Connection;import java.sql.DriverManager;import java.sql.SQLException;import java.sql.*;import javax.swing.*;/** * * @author Admin */public class...
Hi Guys,Have some questions regarding invoking a popup menu.Hope some one could give me a hand on this one...Please see attached Figure as well. http://www.upload-images.net/imagen/559a0ec826.jpg ( http://www.upload-images.net) http://www.upload-images.net/imagen/559a0ec826.jpg[1]Have a Table having a...
I have a window that has a drop-down menu. form this the person is supposed to chose something. I from this want the value of this decision to be forwarded to another JFrame that opens from that...What I am asking is: is there a way to take the returned number/string and forward it to the next windo...
Hello, I'm new to java and working on a project, problem is I require text within a text area(textArea) to change when I hit a button("choice1")problem is I just found out I copied the wrong java file, so my code is still at school. So I can only supply a example close to what I have.import jav...
1160 byte By
sszd at 2007-11-20 8:36:23
I'm new to Java programming and have a very simple question. In class we are running version 5 on the systems that we use. We were asked to download Java at home in order to do our homework. The version I found on the Sun website was version 6. Ok, no big deal I thought, it's the lates...
Alright guys, i have a very basic problem, (and i have also forgotten what the code tags are so sorry). My programme needs to be visual so i need to create a frame, I went to the sun website and tried to use the tutorial on how to get a frame to display. Please could you look at my code and tell me...
Hello, can anyone re write this code in a simpler format, or is the way its written the easiest way to write it?Thank youimport javax.swing.*;import java.awt.*;import java.awt.event.*; public class schoolgamescompetition extends JFrame implements ActionListener{ JLabel emptyLabel; JButton someButton...
51 byte By
vivendi at 2007-11-20 8:37:06
hey, can someone tell me how to create a textfield?
Hello everyone, i have an assignment to do for colllege and was hoping if i could have some help. I need an action plan made so i no what to code and when as it is the biggest project i have every done? does any one think that they will be able to help me with this matter?If anyone thinks they can h...
Hey, i've got this simple application with a few buttons and also an actionListener. Everything works great now but i want the actionListener code in another .class file (under the same package offcourse).Currently my code looks like this: public static void main(String[] args) {...
2793 byte By
stu_man at 2007-11-20 8:38:17
trying to use amount entered * the price and and all together in grand total.can help!!here is my code so farimport javax.swing.*;public class Garden{ String temp, menu_choice; static char code; final static double SAND = 14.95; final static double GRAVEL = 16.76; final static double...
How would i go about creating an array that generates 10 UNIQUE random numbers. Ranging from 1-10? This problem is killing me!!
825 byte By
spidermo at 2007-11-20 8:39:50
For a program that I am coding, I would like to incorporate plugins which would just add more functionality to the program. The reason I would like to include them as plugins is because I mainly want to figure out how they work with java. So far I am using a UrlClassLoader along with a JarInputStr...
hi alli make a program for sorting array of integer using some tec. and make simple animation 2D using bars.--------------now i want to ask about1-i want to compare this tec. with time and num of comparison and swap"using graph"i try to make this comparison at array of size 40,100,1000but really its...
Hi guys,Iam new to Listeners under Swing.Is working on a task under swing & came across the following problem.Have a comboBox(Say testCombo) filled with some string values.When the user selects one item from thge popup menu or when he presses "Enter" I want to do some action.Tried adding both the I...
Q.) I have a file of very very large file size at client side, and I have a JSP page. Using this JSP page, if I want to send the file to a servlet (this servlet will store it somewhere), what is the best method to do it ?
hi<br/>i have a JPanal on which i have a 2 ComboBox and one TextField. If i enter some value in the TextField and then select some thing from the ComboBox the TextField become blank. How i can retain the value in the TextField when i change the selection in the ComboBox<br/>Please help
184 byte By
martin1 at 2007-11-20 8:44:34
hi all,<br/>i wans to write on a text file which is kept at remote server and then i wans to read the content of that text file using applet.Plz sujjest me .<br/>Thanks in advance
2077 byte By
Martin O at 2007-11-20 8:44:38
I have to implement code that, when it loses connection to the database, tries to re-connect.I'm wondering whats the best way to handle exceptions, even in general, when the 'handling' is more than just printing out an error.For example assume I have a function queryDatabase() & I wan...
266 byte By
martin1 at 2007-11-20 8:44:45
hi all,<br/>i m working on jtable my problemis that suppose i right click on any cell of the jtable then a new pop-up window is generated i needs to pick the value of the particular cell in the pop-up menu how can i do that plz sujjest me.<br/>Thanks in advance
Hi all,Want to change the background colour of a specific cell when the user double clicks on the cell.I extended the table so that it returns the "specialrenderer" for this particular cell(see code).Also assumed that on double clicking on a cell,that will become the currently selected cell on the t...
I'm writing a program in which, using a scanner, I want to take in an integer as a command line argument and then take in a file and read from that file. How would I do this?Would I use one scanner for both, or should or I use two different scanners? And with both those, how would I implement...
153 byte By
zhshqzyc at 2007-11-20 8:47:28
I have designed a 2D GUI interface that has many shapes.<br/>How can I embed it into a html web page or jsp?<br/>I have no idea about it.<br/>Thanks
I have made an JList that will show the images file name to be added. Here is the code for the update of the JList addFileList.setModel(addFileListModel); addFileListModel.addElement(path); I want to make something like when the file name is added in the file, the image will also be...
637 byte By
jj1987 at 2007-11-20 8:47:39
http://www.cs.ucf.edu/courses/cop3330/sum2007/program%202.pdfI need help with that assignment.I have setup the "MyBikeShop.java & Bike.java" files.My question is, how do I setup a method as described in the UML diagram on page 2 of the PDF.Let me make it clear, I'm NOT asking for someone to wri...
I recently started to program using JAVA. My friends who have computer studies recently completed various programs as an year end project. I would like to create a tournament program which uses double and single elimination and also something which uses brackets for 16+ people.They used Access as th...
555 byte By
derok at 2007-11-20 8:48:36
Hi everyone,I have a database in Microsoft Access, which has table, that has a column: "price".I am requesting each row from that column like this: while (resultset.next()) {String price = resultset.getString("price");out.println("<TR><TD>"+price+"</TD>");}all the values gets print...
195 byte By
zhshqzyc at 2007-11-20 8:48:39
how to do it?<br/>if given x arrays and y arrays, then connect points.<br/>public void drawLine(int x1, int y1, int x2, int y2);<br/>This function doesn't have width and color
226 byte By
lontana at 2007-11-20 8:49:33
I use NetBeans 5.5. I imported a jar file. On the windows I can see all data about the classes in the jar file but when I double click on a class icon I cannot see source code. How can I open the source code?<br/>Thank you!!!!
1678 byte By
zhshqzyc at 2007-11-20 8:50:02
public class .. private int xy[];public int setxy() {...while ((line = br.readLine()) != null && line.equals(s1)) { List<Integer> xList = new ArrayList<Integer>(); List<Integer> yList = new Array...
4200 byte By
redgto4u at 2007-11-20 8:50:40
I am working on a program that calculates wages and insurance deductions, etc. I'm not sure how to get my program to let me put in more than 1 type of insurance type for a skill level 2 or 3 employee. Skill one employees can't get insurance. Right now you can only choose between medical, d...
1053 byte By
Martin O at 2007-11-20 8:51:39
I want to add a feature to my gui program where, if shift & ctrl are held down as the program is opened, the program shows some extra, hidden fields.Is there any way to query the key state in Java, without using a listener? Win32 has a function 'GetAsyncKeyState' which lets me query the st...
393 byte By
viggu at 2007-11-20 8:51:50
hello allmy program requires the user to send input parameters through command line. in Visual J#, i am unable to find how i can run my code through command like. I got the someinformation in msdn http://msdn2.microsoft.com/en-us/library/2xzttysk(VS.80).aspxbut still i am unable to compile ... pls...
572 byte By
zhshqzyc at 2007-11-20 8:52:03
one silly way is join them together.but each of array's size is dynamic.I hope find a way to implement it.please see my pusedo codepublic void foo() // or public int[] foo() { int a[] = new a[500]; while(true) { ... while(case 1 true) { a = ...// form array a,...
238 byte By
lontana at 2007-11-20 8:52:52
I am using JAI library for reading and processing TIFF images but I cannot find the method that outputs pixel values. Could someone give me the name of methods or classes that perform this task. Or maybe JAI cannot do that?<br/>Thank you
580 byte By
viggu at 2007-11-20 8:53:35
Hello AllThese are the following things that i did...I established a network connection between server and client..I transferred a file (.jpeg, .gif ... etc) from server to client..Now i want to open the file in the client side automatically without the client going in and searching for the file and...
566 byte By
LiorZat at 2007-11-20 8:54:24
hey everybody, I got this jtextfield and it has a caret listener and a focus listener. The focus listener starts up a message box when the jtextfield gets focus (and after ok is selected returns to the jtextfield) and after that happens the caret listener doesn't respond when I type things in t...
240 byte By
zhshqzyc at 2007-11-20 8:55:03
I plotted some shapes on a JPlane, then fill other polygons on it.<br/>but the shapes are coverd by polygons, how can I make them still visible?<br/>I mean transparent drawing, please don't clear previous drawing. (not background)
1608 byte By
viggu at 2007-11-20 8:55:24
Hello all,I am trying to transfer 20kb of data from one client to server. based on what i read about filestreams i wrote this code ...<client side code><CODE> Socket socket = null; int length = 1024, check; byte b[] = new byte[length]; FileInputStream f1 = null; OutputStream out = n...
281 byte By
lontana at 2007-11-20 8:56:05
Dear Gurus,<br/>I would like to write a programm that will process action values from the post and get requests and then insert them into a xml file.<br/>Is there anything already done in this direction that I can use already without having to start from the scratch?<br/>Thank you
81 byte By
__gini2 at 2007-11-20 8:56:10
Can Java classes be linked with XML files and then run?<br/>How can this be done?
131 byte By
__gini2 at 2007-11-20 8:56:12
I have '.class' extension files and jar files for a system that I am going to develop. Where should I locate these files?
357 byte By
__gini2 at 2007-11-20 8:56:13
I have a Java code that I want to run, but running it requires the JVM. How do I get it and install it into my laptop?Is 'bat' the short form for 'batch'?I need to know because to run this system in Windows, it requires running a bat file. I have a batch file, so I was wondering...
7825 byte By
__gini2 at 2007-11-20 8:57:21
I have a class, Terminus. I also have the class TerminusTest to test run the compilation of the whole Bus program which includes the ADT Bus class, Terminus, TerminusTest and Time ADT.But when i try to run the TerminusTest which is the main program(client class), I do not get a sorted output, and th...
Sorry about that, well , im a c++ programmer , well started about a month ago and just wanted to know where can i find a java compiler XD? <br/>Sorry for my noob question.