32,204 Topics

Member Avatar for
Member Avatar for nemo

I am trying to make a simple GUI based calculator for my homework. my +,-,*, and sqr functions work fine. i have to implement sqrt function for one of my JButton. am trying but have no clue what to put in event handler here else if(event.getSource() == sqrt) { ....... …

Member Avatar for peter_budo
0
89
Member Avatar for realnsleo

hey there, could someone please help me with the api for using the flowlayout manager in java as well as a good example..thanks

Member Avatar for masijade
0
78
Member Avatar for antaryami

Any one doing sever programming with MySQL please let me know , all problems that can occur with connectivity of MySQL with SJSAS 9. There is a connectivty setup in the Admin Console. It is a bit confusing with duplicate Capital and small letter entries. Can we use the XADataSource …

0
57
Member Avatar for rpk5000

Hey, this isn't an, "I have an error" post! It's more like I'm taking a basic java course in High School and want to include an image as a background in a project in swing. I found some code online that seems to do this quite well, but I need …

Member Avatar for rpk5000
0
162
Member Avatar for rp_amar
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
196
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

The End.