32,204 Topics

Member Avatar for
Member Avatar for Naresh Bammidi

Hi , Currently i am working on a java desktop application project.can u please tell me how to create dynamic textfields by clicking on add button using swings.please help me.

Member Avatar for masijade
0
136
Member Avatar for ruchi18

hi.. I just want to know is there any way to use flash image in java i mean i f i have java servlet web form and i want to design this form on flash image then how can be it possile please help...

Member Avatar for ruchi18
0
115
Member Avatar for jokers6

i am not a good programmer and so i need help. im not asking for you to write the program but need help with it ! i have some coding but cant figure out how to put the rest together ! ok so this is what i have so far. …

Member Avatar for Slyvr
0
149
Member Avatar for privatestatic

hey guys im doing the gridworld case study and am at the part where i program the Zbug class I have to try and write the code in a select case statement. can you guys fix my code? for more info: page 14 on [url]http://www.collegeboard.com/prod_downloads/student/testing/ap/compsci_a/ap07_gridworld_studmanual_appends_v3.pdf[/url] i really need it fixed …

Member Avatar for ztini
0
201
Member Avatar for tracydo

Hi I need help with the while loop and read from a file to find monthly mortgage payment from the input of Principle, Interest & Term in years. I know I may did something that doesn't make sense here, please take a look and let me know. Thank you in …

Member Avatar for ztini
0
218
Member Avatar for oldezwe

part of the program i am creating requires me to print out all of the links from a desired webpage. I have absolutely no idea on how to go about this. help? thanks

Member Avatar for oldezwe
0
70
Member Avatar for RastaC

Hey guys I have a quick question on my hw, I have found everything needed except the "unusual scores". this is the direction given: Determine which of the grades, if any, are "unusual" in the sense that their corresponding z-score is < -2.0 or > +2.0. A z-score is computed …

Member Avatar for ztini
0
101
Member Avatar for gekkoswave

I am writing a game of three dimensional tic-tac-toe. I need to have a method that can look at the board, and determine if a player has won. Your requirement is that this method is passed an array that represents the board, and returns an answer that can be used …

Member Avatar for ztini
0
301
Member Avatar for java'adik

how can i call data from usb to my "main" at desktop. Example i want to call the variable 'x' at my file in usb, then use it in my desktop file..

Member Avatar for Taywin
0
55
Member Avatar for smithy_2009

Hi, I'm just learning to program and I'm stuck on a basic problem, printing today's date in a form typified by (e.g.) 28 February 2011 Java Syntax (Toggle Plain Text) import java.util.*; class Date { int day, month, year; } class PrintToday { static Date thisDay() { Date today = …

Member Avatar for Taywin
0
98
Member Avatar for Slyvr

How do you determine what the main hard drive is? This is what I have: [CODE]filename="savefile2.txt";[/CODE] and this is pseudocode for what I want: [CODE]filename="MainDrive:/JavaProject/savefile2.txt";[/CODE] My problem with it is, what if C: isn't the name of a person's hard drive? F:\ for instance. And also, if the folder name …

Member Avatar for java_programmer
0
149
Member Avatar for mihir3646

[CODE] class Switch { public static void main(String args[ ]) { String season; int month =10; switch(month) { case 12: case 1: case 2: season = "Winter"; break; case 3: case 4: case 5: season = "Spring"; break; case 6: case 7: case 8: season = "Summer"; break; case 9: …

Member Avatar for java_programmer
0
124
Member Avatar for ChieftanBill

This program is supposed to take the array of command line arguments and sort them alphabetically. Problem is I'm getting an ArrayOutOfBoundsException somewhere. I also have a problem with the while loop. The way I've decided to alphabetize the array with looks a little bit shoddy. My plan was to …

Member Avatar for jon.kiparsky
0
149
Member Avatar for manish250

I have a Java application which uses a MySQL select query i want to use java array elements for In condition.for eg [CODE]select * from table where shortcode IN (aray[]);[/CODE] is it posible to use java array in mysql

Member Avatar for smantscheff
0
72
Member Avatar for manish250

Hello all I am using reading a config file in which there is a entry [CODE]code_list="515,522,560,000" [/CODE] while i am reading this string in my java application and using split on it and then assigning it to a string[].it is giving null pointer exception.needed code is as follows [CODE] static …

Member Avatar for manish250
0
2K
Member Avatar for ahmed_fawzy

Please Urgent help....! the difference between float and double... but a Detailed one.... because it makes me confusing and i'll be very grateful....

Member Avatar for JamesCherrill
0
145
Member Avatar for draven07

..I am trying to create an ATM-like java applet program that will enable a user to check for their balance, make a deposit and withdraw a certain amount.. ..The program will require a swipe card number(as if it is was a real ATM) but should be already included in the …

Member Avatar for JamesCherrill
0
89
Member Avatar for Amillia89

[CODE]import javax.swing.*; import java.sql.*; import java.awt.*; import java.awt.event.*; import java.lang.*; class Main extends JFrame { public Main(String st) { setLayout(null); setDefaultCloseOperation(javax.swing. WindowConstants.DISPOSE_ON_CLOSE); JLabel lab=new JLabel("Welcome "+st+"!! \n Click OK to Continue"); JButton OK = new JButton("OK"); OK.setMnemonic('k'); OK.addActionListener( new ActionListener() { JButton OK; public void actionPerformed(ActionEvent e) { [COLOR="Red"] Main();[/COLOR] …

Member Avatar for JamesCherrill
0
146
Member Avatar for someone5
Member Avatar for kennyrgz

Hello everyone! :) Here I come to you again with a question. I need some ideas on how make a java program that can work with big numbers, without using special java API`s like java.util.BigInteger and java.util.BigDecimal. This program will be able to substract and concatenate. My idea would be …

Member Avatar for JamesCherrill
0
140
Member Avatar for kodera

I have a class file with my method to read for prime numbers in my text document, and then my main java file calls on it using the file input code. I am lost in my code, and not sure what is going wrong, because it just reads out 0 …

Member Avatar for ~s.o.s~
0
147
Member Avatar for Sheena26

guys i really need your help about my project anyone can help me i will appreciate it because its due on 3/3/11. thank you and GOD bless! 1.Write a program that takes a one-line sentence as input and outputs the following response: If the sentence ends with a question mark …

Member Avatar for peter_budo
0
610
Member Avatar for sj5536

hi i want to read barcode from tiff file (image) so what i do for that is there any library and sample code for that plz help thankx

Member Avatar for sj5536
0
56
Member Avatar for carlitosway17

Hey Guys, I am working on an assignment where we are supposed to output the date in different formats for example, month, date, year or date,month year, I have implemented a method to change for the arrangement of dates, It builds successfully but has errors when it runs plus it …

Member Avatar for mKorbel
0
188
Member Avatar for sj5536

hi i have to read tif File using java file has 3 pages and take first two page of that file and create new tif file with different name can u suggest me how should i start

Member Avatar for peter_budo
0
307
Member Avatar for goyalastha

hi i am running a program using jdom. It compiles successfully but doesnot run. It gives an error "C:\ProgramFiles\Tomcat\tomcat-5.5.9\webapps\jsp-examples>java KmlSample Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/Content Caused by: java.lang.ClassNotFoundException: org.jdom.Content at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Could not …

Member Avatar for peter_budo
0
119
Member Avatar for pramod.singh

i have a hash map in my application containing some key - values pair, i just want to compare previous value with current value of hash map and then move to next. then i wants to make next value as current and current value to previous and continue in this …

Member Avatar for masijade
0
49
Member Avatar for Shizuo

[B]How to clear the content of a JFrame? my code is something like this: there is a main window with buttons 1 and 2 (2 is for exit) when I click button 1, a new window should appear with lots of components , etc then inside it is a cancel …

Member Avatar for navedalam
0
93
Member Avatar for hairpull

This code randomly generates 4 lottery tickets and prints them on seperate lines. The code works, but what if I wanted this to print for 100 lottery tickets? Is there a way to write this with less lines of codes? Would using a for loop work? [CODE] import java.util.Collections; import …

Member Avatar for hairpull
0
250
Member Avatar for shinbojack

Hello all...first-time poster here, and I was wondering if any of you fine folk can help me out with what is surely a simple task, but something very confusing for someone just starting off with Java. In a nutshell, I am creating a simple mobile game where a user is …

Member Avatar for shinbojack
0
158

The End.