35,617 Topics
![]() | |
Hi , can we set cursor position where ever we want in dos prompt from java programming. i want to clear dos prompt window from java program.and go bak to some position .Is there any way of doing that?. | |
Coulde anyone post a code on how to convert images to binary? I need to store the data in my database using an http connection. also how do i retrieve the image from the database? | |
Hello, I am interested in knowing your opinion in Java GUI development using AWT and Swing. Each have its own pros and cons. I am wondering which one is most preferable by java developer. AWT or Swing or Both? Please state your reason. Thank you. | |
[B]Probelm: [/B] I have 2 panels in my main container. The jplTop Panel is what with I am concerned. I have set its layout as[B] jplTop.setLayout(new GridLayout(2,4));[/B]. So as per the layout setting I must have 4 components on the 1st row and 2 components on the second row. But … | |
I have a basic Java file I/O question. I am trying to read/write from/to a text file (obviously) from within a function that is called by main(). Can you do the following within a function: [code] Scanner inFile = new Scanner(new FileReader("File1.txt")); PrintWriter outFile = new PrintWriter("File2.txt"); [/code] or does … | |
Hi, I have to make a snake game. i need an array to store allposition of the snakes body. i will also need a variable to store the number of parts in the snakes body. I know that i have to use the number of parts ++ but i dont … ![]() | |
I'm trying to show the balance and interest paid for each month. The balance should go down with each loop until balance is paid in full. The balance will go down but with the wrong amount I don't know how to put an loop in here that will say balance … | |
<code>Does anyone know how do I go about getting user's responces once they've entered their responce into a prompt box & assign it to a variable, to utlimately use their responces to concatenate it with other strings to make a sentence. I'm just having trouble assinging user's input to be … | |
[COLOR="Navy"]Hi everyone, I'd like to know if anyone can give me any idea(s) or resources to help me with a project I'm working on. I am creating Email agents using SMTP and IMAP protocols.I have been able to work on the SMTP part, however, I'm having challenges writing the codes … | |
Hello to anyone who can help me. I'm a freshman in comp sci and here is my problem: I need to have the user type in a number in a JOptionPane input box, and I need to change the number they input into a double. Here's what I have, it … | |
[code]/* Java Swing Calculator */ import java.awt.BorderLayout; import java.awt.Color; import java.awt.Container; import java.awt.FlowLayout; import java.awt.Font; import java.awt.GridLayout; import java.awt.Window; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JPanel; import javax.swing.JTextArea; public class Calculator extends JFrame … | |
![]() | Hi people, I am having trouble with my splash screen. Basically, it just flashes really quickly and I can't get to to pause for long enough. See attached file. I've attached my program as a zipped file. After you have download it you need to right click and extract it … |
I have to get an animation to restart once the user scrolls the mouse over the image... I know I have to use MouseMotionListener, what I don't know is how to get the coordinates of the image to do this operation. I'm using GridBagLayout manager, the whole thing runs inside … | |
Hello- I am creating a puzzle that is like the "Rubik's Cube," although this puzzle is played on the computer monitor, and the puzzle involves images placed on the sides of a cube. The mouse is used to rotate the sides of the cube. Each side of the cube is … | |
ok I poseted about an assignment that i had to do for my Java programming class. Now i have attempted it and i have kind of gotten it to work but its not working properly ... i have no idea what i'm doing wrong ... please help me fix my … | |
Hi, I am new at programming and I have never done Java before. I am in my first Java class and we are asked to complete the following question...[B]Complete the method printLargestAnimal below. [/B]Consider the three Strings "dog", "cat", and "monkey". In lexicographical order, "monkey" is the largest of the … | |
hi I am facing problem in Threads in java. I have studied threads and know the theory of it. But I just cant get started. It would be great if I can get some sample codes showing the use of wait(), notify(), sleep() . The code should have a number … | |
hello all..I have created ANT Script and need to work along with CVSMy ANT Script shall1. As of CVS extract .ear from this is the common version 2. Extract from CVS and overwrite in target directory the specific components listed in the specific [INSTANCE].Can any one tell me how shall … | |
Hello Everyone, I am having quite a problem with a program I am trying to get working. I am trying to make a marks tracking program using an array that has an array of strings 3 elements long called Names. Has a 2D array of integers 3 * 2 elements … | |
Hi all, I have developed and application (midlet), could any one please let me know how to deploy this on the device (mobile device). | |
Hi all, I am having a little problem with regular expression. I have a change password application and I want to make sure the password contains at least one numeric character. The regular expression that I am using is, [a-zA-Z]+[0-9]+|[0-9]+[a-zA-Z]+. If I put in "testing", it would return false, which … | |
Hi all, I am working on generating CSV month by month for annual report. what I do is just create CSV file initially and append to it every month end. So as to generate annual CSV file in following format: Month 1, Nokia8800, 156.0 Month 1, Nokia3120, 113.0 Month 2, … ![]() | |
i want to know if there is any difference betwen [URL="http://www.linuxforums.org/forum/#"]java[/URL] and javascript... are they the same thing? | |
hi.. my name is vikrant..doing b.tech in comp science engg..when i start the jakarta tomcat5.0, it gives me the error that java_home not assigned properly ang gives me the error that unable to find _djava.endorsed.dirs. what is meant by this file..is there anyone to help me | |
Hi, I'm considering making a Connect 4 game in java. I have just completed my chess game (version 1 anyway), [URL]http://www.colin-java.co.uk/JChess/index.htm[/URL] So connect 4 should be a load simpler. However I am uncertain as to which evaluation function to use, does anyone have any experience with this. Thanks for any … | |
THis program is suppose to read a txt file, contating text with weird spaces( the space on the space bar, character space on keyboard wtv u want to call it).also write the number of spaces in front of each line, and you are suppose to get rid of them like … | |
Hey guys, I'm for the most part a backend programmer but I'm taking a GUI class as a elective, and I'm haveing some problems with an applet. Part of the assigment is to create a logo design that displays a bunch of pentagons in a circle with different colors and … | |
i have to set the time in minutes when this plane is expected to land or take-off. and i have to use method int..:eek: public int setScheduledTime() { } what should i do.... :sad: ![]() | |
Hi, I have been working on a project for my java programming class but I just dont know where to even start. here is what i was assigned Your program must: [LIST] [*]Not declare any class attributes. You will not need them in a carefully designed class. [*]Read a single … | |
Greetings, I'm aware of the incorrect rouding that NumberFormat does in Java. We are working with dollars and cents but multiplying the amounts against an "area factor" with four or five decimal places. As a result, the dollar amounts, when returned, come back a penny off due to the rounding. … |
The End.