32,199 Topics

Member Avatar for
Member Avatar for new_2_java

Hi all, I am trying to create a file and write something into that file. Here's what I have tried: [code] import java.io.*; import java.util.*; public static void main (String[] arg) { try { String file_name = "test.txt"; FileWriter file = new FileWriter(file_name); BufferedWriter out = new BufferedWriter (file); String …

Member Avatar for new_2_java
0
1K
Member Avatar for nemo

Hi, i am a beginner in java. i have to put two text fields in my form, one for username and the other for password. i want the password text box to hide input when user types in it. Can someone please tell how can i do that in java, …

Member Avatar for almasalkhi
0
152
Member Avatar for shadab

hello everybody i am a student of mca final year i have to make a project for final semester please suggest me some project titles on java technology so that i could make it within 6 months please guide me i am helpless

Member Avatar for jwenting
0
79
Member Avatar for Cerberus

I can't seem to get access to images in my application when i pack the executable jar file. I've tried everything i can find in examples and nothing is working. Can anyone help please? Is there a way of specifying where images are in the manifest file.

Member Avatar for peter_budo
0
378
Member Avatar for RAWR-itsanONION

I'm working with metrowerks codewarrior to do this program. This program asks you to create fibonacci sums up to 2^23 and then asks you to do some more stuff after that. I'm just wondering if you would set up an array or a for or a while loop to complete …

Member Avatar for deng_cen
0
111
Member Avatar for fowlergod09

HI, I am having some trouble with my assignment. I have created the gui and i am now writing the event handling. My problem is with the arrays. I have 3 seperate arrays all the same length.1 is a string and the other two are ints. in each array the …

Member Avatar for fowlergod09
0
125
Member Avatar for new_2_java

Hi all, I am new to Java, I have written a small Java program; as far as my knowledge the program seems to be alright. When I compile the program, it compiles without any complain. However, when I try to run it, from OS command prompt, I get the following …

Member Avatar for new_2_java
0
162
Member Avatar for mjpjava

Dear Friends Im mjp java :* i have one doubt in drag and drop picture in panel . can u say me how to use different layout panels in drag and drop functionality.

Member Avatar for iamthwee
0
38
Member Avatar for mattb0611

So I'd really like to write an article about the inclusion of Sun's Java in the latest Ubuntu release, but I'm not exactly sure what that means for Java in Linux as a whole. Java has always been available as a package and is easy to install, but I think …

Member Avatar for iamthwee
0
68
Member Avatar for spacecowboy123

Hi All, I am writing a servlet, applet application. They will communicate over the network using a Class I have created called NetworkObject, which is in a package called NetworkObject, in a project called NetworkObject. How can I get my applet to load the class? When the applet loads and …

0
78
Member Avatar for nizam147

Hii Friends I am doing an erp web application using jsp,servlets,struts,sql server 2000 but havent implemented connection pooling, but want to do it now can anyone quide me the best way to master it or show me where can i find some pdfs which will give me the most knowledge …

Member Avatar for antaryami
0
96
Member Avatar for spacecowboy123

Hi All, I am working on an assignment where an applet has to communicate with a servlet. It works fine with java data types, such as string etc, but when I try to use a class I have created, there is an exception thrown when it is cast into this …

Member Avatar for saurav
0
79
Member Avatar for omoz4real

Hi everyone pls I have got two images on a JFrame which are represented by labels.one of them is generated randomly and i want to compare it to another and if they are both the same a message dialog box is shown stating that the images are the same or …

0
64
Member Avatar for jonbc86

Java program with a menu of 6 items. -each of the 6 items has a check box -when the food is selected it appears to the right saying that so n so was selected. -then i just need a welcome screen before that to introduce the program -then the user …

Member Avatar for jonbc86
0
85
Member Avatar for hassanmushtaq

i m new to java and j2me. i m developing chatting client. i have almost completed it. but when i m testing it on Nokia 9300 Communicator it gives exception like java.microedition.media Exception: Symbian OS Error: -14. this exception occurs while chatting with other person with rapid pace. and one …

Member Avatar for hassanmushtaq
0
114
Member Avatar for jonbc86

import java.awt.*; import java.awt.event.*; import java.swing.*; import java.util.*; public class Main extends JFrame implements ActionListener { private DefaultListModel mod1=new DefaultListModel(), private DefaultListModel mod2=new DefaultListModel(); private JList 11 = new JList(mod1), private JList 12 = new JList(mod2); private JButton to=new JButton(">>"), delete=new JButton("<<"), ord=new JButton("order"); private JLabel costLabel=new JLabel("Total Cost: $0"); …

Member Avatar for jonbc86
0
85
Member Avatar for peter_budo

I have directory which is used to temporary store images while working with them. Once all process are done and images are not need it anymore I would like to delete them. I tried following code but it didn't work. Where is problem? [code] Runtime comPrompt = Runtime.getRuntime(); String[] execStr …

Member Avatar for uh63
0
2K
Member Avatar for rzozaya1969

I have an application that I want to create my own dialog screens. For example, the user cliks on one frame, and I want to open a window for the user to enter data, after the user finishes, he presses OK and then the main app continues. On the class …

Member Avatar for lucky1981_iway
0
171
Member Avatar for sushilover25_78

I am trying to figure out a way to write a program that takes the "digital product" of a number (has to be positive). Like if I had 123456789, it would take 1*2*3*4*5*6*7*8*9 which is 362880. It would then take 3*6*2*8*8 (leaves out zeros) which is 2304. Then 2*3*4 which …

Member Avatar for soumyajit
0
113
Member Avatar for ajay_tabbu

dire friends i write code in applet for scrole text left to right.now i want same thing in verical direction n cover full length of screen.so what i should do it

Member Avatar for ajay_tabbu
0
128
Member Avatar for Rashakil Fol

I'm getting some javascript that's causing slowdowns. It's stuck in an infinite loop or something. This is on Konqueror. Never happened before.

0
108
Member Avatar for push

how to call javabean from jsp? i wanted to call javabean from jsp with in my own folder keeping at webapps folder. Pleasssssssssssssss help me for this.................:sad:

Member Avatar for push
0
88
Member Avatar for rahulgupta1979

hi everybody, cud neone here pls help me out in printing a page in Java. I have a page designed in swings which contains mainly labels and textareas. And i need to print this page in java with a click of a button. Could nebody arnd please help me out …

Member Avatar for lucky1981_iway
0
194
Member Avatar for javarookie

I need some help with some Java code for a web interface that provides should provide task information as follows. Just give me some guidence and I will (try)do it on my own. Thanks. Input parameters are date char(8) YYYYMMDD and tasknumber – char(4) If date is today it should …

Member Avatar for evilfruitsmashe
0
86
Member Avatar for ajay_tabbu

dear friends i set path for jdk1.6.0 and that is working.now i have instole j2me but my j2me code is not working,on run import file cannot find by compailer .so plz tell me is there any need of seting path and if it is than how i can set that.

Member Avatar for rahulmenonr
0
111
Member Avatar for parul195

i am facing some problems with the following code. initially the jdbc driver(jdbc 4/3) ws not getting registered...nw somehw that problem has been rectified.bt nw i m unable to connect with the database(PostgreSQL). The code i have written is as follows import java.sql.DriverManager; import java.sql.Connection; import java.sql.SQLException; public class Example1 …

Member Avatar for masijade
0
111
Member Avatar for NotThereAnymore

[code]import java.util.Scanner; import java.util.Random; public class Hangman { public static void main (String[] args) { char userAnswer; String[] dictionary = { "acorn", "actor", "album", "alien", "bagel", "basin", "beach", "brick", "cable", "chalk", "cloud", "crowd", "debug", "ditch", "drill", "drink", "eagle", "eight", "elbow", "extra", "fable", "feast", "fizzy", "flood", "giant", "glass", "gross", "grump", "happy", …

Member Avatar for NotThereAnymore
0
123
Member Avatar for alba07

Can someone help me rewrite this java program in python. This program takes a message from the shell and flashes the message one word at a time. Now I am supposed to rewrite it in python (tkinter), I have the gui done and my quit button works, but I cannot …

Member Avatar for stymiee
0
93
Member Avatar for 2mdennis

I am fairly new to Java and am having some difficulty with implementing an arraylist. I have some classes that contain variables and i have a new class that contains my arraylist. I would like to know how i would get the variables from the other classes into the arraylist …

Member Avatar for 2mdennis
0
159
Member Avatar for ajay_tabbu

i have make one package(c:\program files\java\jdk1.6.0\bin\MyPack) and save file as AccountBalance.java this file has two classes.see below. package MyPack; class Balance { String name; double bal; Balance(String n,double b) { name=n; bal=b; } void show() { if(bal<0) System.out.print("-->"); System.out.print(name+":$"+bal); } } class AccountBalance { public static void main(String args[]) { …

Member Avatar for ajay_tabbu
-1
153

The End.