31,001 Topics

Member Avatar for
Member Avatar for Li Zheng

Hi, I am a newcomer to this forum, also new to Java programming. Recently, I am working on GUI design. I have a number a JLabel components put into one single JPanel component. In order to have a full display of all the JLabels, I intend to use a JScrollBar …

Member Avatar for freesoft_2000
0
72
Member Avatar for Mike23cool

Can somebody please help me or tell me how to write functions in java.

Member Avatar for nanosani
0
78
Member Avatar for macca1979

Hi there, I'm currently trying to write a program that requires me to generate some mathematical formulas. I've been able to use the extended ascii codes to represent some of them using code like below : int i = 64; String aChar = new Character((char)i).toString(); //Prints the ascii value of …

Member Avatar for jerbo
0
131
Member Avatar for nanacat

I was wondering if anyone can help me to understand 3 by 8 decoders. I have to write a program that simulates a 3 by 8 decoder and so far it only passes black box testing. This means I basically did "If input is _ and enable is _, then …

0
97
Member Avatar for bigtpsychoboy

Ok so i need to take seconds and turn them into Hours, mins, and the leftover seconds. The problem is i dont know how to use the remainders(Ex: if i had 3.98 how would i use the .98) any help is appreciated.

Member Avatar for jerbo
0
345
Member Avatar for Ghost

In java, how do you input something from the keyboard - the standard way(don't import anything - or add a file) Thanks!

Member Avatar for Ghost
0
108
Member Avatar for sundeeppro

sir, I am presently studying in final year and I am saspiring to do a project in java so please guide me by giving a well explained material on java applets and their connections with servers like jsp,apache and others

0
74
Member Avatar for nn_tiwari

hi guys i want to recursion in such a manner that i put menu name in properties file and i want to add theire respected sub menu. e.g. menubar = file edit help file = New Open Save Exit edit = Cut Copy Paste help = help help = about …

0
68
Member Avatar for psylocke

here is my program and hope u could help me solve my problem on how to repeat this whole game program when the player chooses the the Yes button which indicates that he'd like to play again. [CODE]a:\master1.java[/CODE]

Member Avatar for psylocke
0
158
Member Avatar for psylocke

hey guys, i am on the process of finishing this program it is supposed to be finished already only that I do not know how am i going to repeat the whole game after the user chooses the Yes Button from the message box. i hope u could help me …

Member Avatar for psylocke
0
170
Member Avatar for joebanks

having trouble getting started with a program i need to have an array of objects which will hold name of cd, and 2 dates associated with it. i am new to java and not sure how to begin. i already have a dialog built for it, but i am stuck …

0
105
Member Avatar for nanosani

I want to input a string Suppose the string was : String s = "sani"; Now I want to make "sani" the name of an object of one of the class. Suppose the name of the class is myClass. I want to : myClass sani = new myClass(); Any ideas??

Member Avatar for freesoft_2000
0
208
Member Avatar for axiss

whenever I try to use \t to insert a tab space into one of my Strings it just inserts it as an \t instead of an actual tab space. I have also tries using \u0009, but this one doesn't even do anything. All the other ones (e.g \n ) all …

0
55
Member Avatar for pangs

I am working on a UI on swings. I have a splitpane in which the right pane is again a split pane. I have a text header on the rightmost pane. Now whenever the panel is maximized,the text breakage of the header is not even.The text header comes on the …

0
55
Member Avatar for mndeaves

Hello there. Can anybody help me with this problem. I am trying to write a program that creates instances of classes that extend JFrame to make my application windows.... This code runs but I can not reference the JTextField shown on the GUI - it seems that there is another …

Member Avatar for apcxpc
0
83
Member Avatar for L. Shelby

I'm spankn' new to java with no previous computer programming experience and I need help with an assignment. The assignment is to write a Java program to direct a cashier how to make change. Input guidelines: 1) Number of dollars due 2) Number of cents due 3) Number of dollars …

Member Avatar for L. Shelby
0
172
Member Avatar for nanosani

What is the difference between jbuilder 7 and jbuilder 9 ... I am using jbuilder 7 .. n I am thinking of buying jbuilder 9.

Member Avatar for nanosani
0
150
Member Avatar for rush88

:?: I got this far....but its not giving me the required output....can you give me some directions....here are my codes....thanks....please refer to my pdf file for the question. //import java.lang.*; import java.math.*; import java.io.*; class MatMulti extends Thread { static int in1[][]; static int in2[][]; static int out[][]; static int …

Member Avatar for cosi
0
146
Member Avatar for perky_jing

how do i make the number of my textfileds dynamic? the number of my textfield depends on the parameter passed through the method `setDetailsPanel(int s)`. the variable s determines the number of textfield i need. i'm having this type of error. i don't seem to get the reason why. D:\Program …

Member Avatar for perky_jing
0
1K
Member Avatar for psylocke

how am i going to repeat my whole game program? i dont know what to do. i have the codes below. and this program is already running, i have compiled it and it has no syntax and logical error, this is mastermind game. my only problem is how am i …

0
73
Member Avatar for mmahesh_23

its not possible for me to create a object in window for example Window obj=new Window(Window owner); or Window obj= new Window(); can u please tell me it is possible to create a windowobject or not directly without using frames

Member Avatar for nanosani
0
140
Member Avatar for freesoft_2000

Hi everyone, I have a text area and a button on a frame and there's some text in the text area. What i need is when the user clicks the button whatever the text selected by the user in the text area and not all the text in the text …

Member Avatar for nanosani
0
100
Member Avatar for calvinnhobbes47

I'm taking AP comp sci and I'm new to JAVA. Can someone help me write this program? [B]Assignment:[/B] 1. Write a program that accepts the letter grades for a student, calculates the student's GPA, and prints it out along with one of the following five messages: Eligible Ineligible, taking less …

Member Avatar for server_crash
0
207
Member Avatar for xxx1203

;) me is doing an assignment using java...but i meet some problem here..it is about hangman games..it is like this: if i click A button it will have to go through all the alphebert, if the 1st alphebert is A it will display 'A'

Member Avatar for nanosani
0
78
Member Avatar for holmberg

I'm trying to add a commission calculator to my new website, and it works properly for the first two of three form entries, but I wish to add a 3rd level calculation. I'm not familiar with javascript at all really, so I have no clue what to add to the …

Member Avatar for heymichelle
0
165
Member Avatar for mkas82

I am a postgraduate student and I have exams in java language..I have some problems with 3 programs.Can anybody solve them for me?Can I send them to someone who loves Java?

Member Avatar for alc6379
0
145
Member Avatar for jak

:sad: When going to compile a program it would not recognise the class object I had created. Since I found no error I checked out some of my previous work and found that no other class objects I have previously created are working either. I have had this problem before …

0
90
Member Avatar for naveen_vt

I have a program i read a single file,but i want to read 2-3 file one at a time can it possible. Pls solve my problem and give me the code. [SIZE=1]undefined[/SIZE]

Member Avatar for nanosani
0
64
Member Avatar for kelvin

i would like to add sound in my java calculator when an error occurs(e.g when operation *and / are pressed).please help me with the sound code.

Member Avatar for server_crash
0
111
Member Avatar for johnroach1985

the program works fine but it gives this java uses or overrides a deprecated API error after i compile the code is below it is a program that uses sql the data base is northwind.I hope you could help me its a project so any help would be welcomed. [CODE] …

Member Avatar for johnroach1985
0
25K

The End.