36,051 Topics

Member Avatar for
Member Avatar for maendeleo55

When tring to write a program using a class, my instructions is to request an imput of three numbers and then create a random class to generate three numbers, after doing so, i must determine if the random class highest number matches the highest number of the numbers instructed to …

Member Avatar for nanosani
0
146
Member Avatar for tayhui

Hi! Can anyone help me on the below java program? How to call the thread program - the parallel program? my program can only run in sequetial but not parallel... I need to write a program that will receive as input a single M x N dimensional matrix A with …

0
51
Member Avatar for nanosani

how can I change the attributes of a file as read only .. and hidden ....... and turn back to read write .. and visible?

Member Avatar for cosi
0
148
Member Avatar for ineedjavahelp

Why do I get this error? GUI3.java:13: GUI3 is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener public class GUI3 extends JFrame implements ActionListener ^ 1 error please help me! thanks.

Member Avatar for cosi
0
94
Member Avatar for Squires

I need a little help connecting to a database in Java. The example in the book I have uses the following: [code] static final String JDBC_DRIVER = "com.ibm.db2j.jdbc.DB2jDriver"; static final String DATABASE_URL = "jdbc:db2j:books"; [/code] It goes on to use it: [code] System.setProperty("db2j.system.home", "C:/mysql"); Class.forName(JDBC_DRIVER); connect = DriverManager.getConnection(DATABASE_URL); [/code] First …

Member Avatar for GeethaAdhi
0
185
Member Avatar for Elektro

im compiling a who wants to be a millionare game and i am unsure where to start does any one have any ideas??? :mrgreen: thanks

Member Avatar for Elektro
1
102
Member Avatar for server_crash

I have been working on TicTacToe for some time now. I just now got it to work but it's not working properly. When somebody gets three in a row a label is suppose to show that a player has won but it does'nt. So I cant figure out why it's …

Member Avatar for server_crash
0
127
Member Avatar for izaki

i have a project is something like instant messaging, how to know who logged in and check wheather the user is in my userlist (e.g user.txt) Anyone can help me?

Member Avatar for Iron_Cross
1
163
Member Avatar for freesoft_2000

Hi everyone, I would like to ask if anyone knows how to load classes from a .jar file and what api i should be looking at. Could someone show me or e-mail me the codings of how to do this the right way. My e-mail is [email]freesoft_2000@yahoo.com[/email] Thank You Yours …

Member Avatar for nanosani
0
84
Member Avatar for Paz

I have a working Java application (command line input only) that I would like to adapt to run on a web server and accept input and give output to a servlet/JSP page. I am familiar with basic Java programming - am having trouble knowing what to do first. This seems …

0
61
Member Avatar for Rashid Riaz

Hello, I am new member here I need help with my program. I am trying to calculate interst for a loan I am not able to calculate last payment for loan like if loan amount is 1000 and interst rate is 18% which come up 1.5% for every month and …

Member Avatar for nanosani
0
124
Member Avatar for Cockney

Hi all new in this forum I'm facing a problem. I need to pass the contents of an XML file to a hash table. The problem is that for each key i have multiple values. i.e. <?xml version="1.0" encoding="utf-8" ?> <Menu> <File> <EN>...</EN> <FR>...</FR> <IT>...</IT> </File> <ShowHide> <EN>...</EN> <FR>...</FR> <IT>...</IT> …

0
115
Member Avatar for sandyis

help would be greatly appreciated...(please please please) :) this is what i found through hijackthis...just not sure what to remove.. thank you for your time and hello! sandy Logfile of HijackThis v1.98.0 Scan saved at 11:47:54 AM, on 9/4/2004 Platform: Windows XP SP1 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP1 …

Member Avatar for mikeandike22
0
174
Member Avatar for copycat

Can someone help mi I need to do a word count i enter a word e.g. superboymother it will search for the char a,e,i,o,u and return mi the result is: a=0 e=2 i=o o=2 u=o

Member Avatar for copycat
0
95
Member Avatar for Newbee

Hi, I am a novice in programming and need help in my mortgage calculation program. I have the GUI set up all functioning good the only problem I have is the calculation portion that is not doing its job. Can anyone please guide me how to correct my problem? import …

Member Avatar for nanosani
0
121
Member Avatar for gkakkireni

Hi to all i have requirment like this the field length is 15 digits but am getting input only 6 digits..means i have to put spaces after the 6 digits position menas spaces after the value.how to do it in java,could u send the sample programe . thanks in advance …

Member Avatar for Banderson
0
110
Member Avatar for modumass

hi all. i need to write an application class with a main method and a second method called tempCalc, and then in the second method put the code from a previouse temperature calculation experiment. but i have no idea how to do this. i read the part in "Sams Teach …

Member Avatar for Banderson
0
166
Member Avatar for akilbakari

does anyone know where i can get source code to write a java 2 program GUI that converts integers to roman numerals? i would appreciate it. my e-mail address is <<snip>>. by the way, here is my code: import java.io.*; public class Roman{ static final int values[]={1,5,10,50,100,500,1000}; static final char …

-1
221
Member Avatar for tablet

i have started to create a simple java game and at the moment i have done as much as i can possible at the moment the game builds with no errors. but it does nothing. what i want it to do is that the player enters a bid and if …

Member Avatar for nanosani
0
270
Member Avatar for ranyodh

hi to everyone.... I got a problem with queries.... before i tell my problem, please look at the is code - // employeeCode is ArrayList containing employee codes. String query = "SELECT Name, FatherName from Employee WHERE "; for(int i=0; i<employeeCode.size(); i++) { if(i == 0) { query += " …

0
75
Member Avatar for C#_Virgin

Hi, I'm new to this site so quite unfamiliar with how things work.... I have recently begun learning about C# and the .Net framework. As a java programmer, I found C# a good basis to start on. I wanted to change a lot of my existing code from Java to …

Member Avatar for Decency
0
168
Member Avatar for freesoft_2000

Hi everyone, I want to know how to print the contents of the text area including all its fonts to the printer. I have no idea how to implement this in awt. Could someone show me or e-mail me any sample codings on how the print functionality can be implemented …

Member Avatar for hivework
0
135
Member Avatar for teritori

hi there guys.Can anione please show me how to create a always on top frame.(no native methods)

Member Avatar for DeepZ
0
284
Member Avatar for nanosani

What is a Glass Pane ? and how should I use it ... please give an example. Thanks.

Member Avatar for nanosani
0
220
Member Avatar for freesoft_2000

Hi everyone, I am trying to load images in the canvas but it seems nothing gets loaded at all but the program compiles without any errors. It is actually a simple image viewer and have tried almost everything. Anyway here is my program and i hope someone can help me …

Member Avatar for hivework
0
868
Member Avatar for axiss

Well basically for the assignment I have to write a project that reads data from a .mdb database file and stores this data into a 2D array, then lets the user manipulate the data in the array (stuff like adding, editing, sorting, deleting and searching data) by using GUI and …

Member Avatar for axiss
0
269
Member Avatar for vn5ae

im currently in the middle of tryin to complete my dissertation for my masters in software engineering, and i need java code to analyse, i need to measure the complexity and the number of faults each class has. so i was woundering if any one can help me out by …

Member Avatar for mikeandike22
0
160
Member Avatar for copycat

ok i am doing a programe that can read a string eg, "Lordofthering" is there any way to break up the String into char?? i try StringTokenizer but fail. :cry: :cry: i need the result to be printed to text file: L o r d o f t h e …

Member Avatar for axiss
0
109
Member Avatar for zaman1111

does anyone know how can i handle checkbox values using jsp and pass them to the database. String[] Job_type = request.getParameterValues("Job_type"); How do i handle that. Thanks.

0
144
Member Avatar for ZEEPLE

Hello everyone, I am writing a program that is for a programming class..This program has to display syntax when the appropriate button is pushed..it also has a menu bar that must be functional. It must also run as an applet and as an application. The above is complete and my …

0
86
Member Avatar for macca1979

Hi there, First off I'm new to java and coding in general so please bear with me. I'm trying to write a bit of code that will convert something like the following con(pk(B),pk(AS),pk(A),B) to this k_B, k_AS, k_A, B I have written the following code : Pattern pk = Pattern.compile("pk(.*)"); …

Member Avatar for nanosani
0
128
Member Avatar for freesoft_2000

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 in the text area is saved to the file "C:\ret" with the aid of the file selector dialog. …

Member Avatar for nanosani
0
185
Member Avatar for armann

I am trying to connecto to mysql database using RedHat 9 but always get a wonderful error message when I try to compile this code: Context ctx = new InitialContext( ); //Error is thrown here if(ctx == null ) throw new Exception("Boom - No Context"); DataSource ds = (DataSource)ctx.lookup( "java:comp/env/jdbc/xsmsDB" …

Member Avatar for cosi
0
163
Member Avatar for i_me_roo

Hi guys, In my program i have to draw rectangles, but i need to pause before drawing it depending on the the number it has been assigned. I have created a timing class, which pauses the timer according to the integer. I have used tested the timing class and it …

Member Avatar for nanosani
0
164
Member Avatar for nanosani

I'm in need of determining and implementing the LookAndFeel of the operating system default within a swing frame, whatever that default may happen to be (and without using the string "com.sun.java.swing.plaf..." in the code whatsoever. When simply leaving the UIManager.setLookAndFeel() as is when creating the frame, the correct OS default …

Member Avatar for nanosani
0
148
Member Avatar for nanosani
Member Avatar for nanosani
0
107
Member Avatar for zid

hey guys...... my name is zid.. ok here is the case....does any one know hows to initialize or activate a file in a client pc from the server....i've tried applet...but my boss was not happy with that coz...the comfirmation pop up windows apperead every time that applet loaded....is there any …

Member Avatar for zid
0
134
Member Avatar for owobass

I wish to become a system software developer.I mean I want to be writing compilers, operating systems and the like.I don't know which languages will be most appropriate for the task.At the monent I know some c++ but I don't know if one particular language could be better than the …

Member Avatar for Chainsaw
0
168
Member Avatar for Pimp Daddy

This book, which is written by David A. Wyatt and Deryck F. Brown is excellent for explaining some of the more complex aspects of data structures and gives plenty of examples of various different algorithms. It also explains a little bit of history behind some of things that are being …

Member Avatar for cosi
0
140
Member Avatar for nanosani

I want to control the power of my room from my computer. I want to add the circuit to my serial or game port. Can I make the driver for it in java (I know I can) but is it easier than any other language like vc. Any ideas?

Member Avatar for cosi
0
162
Member Avatar for freesoft_2000

Hi everyone, Does anyone know what a java manifest file is and how to create your very own manifest file. Someone please explain this manifest file thing to me in detail as l have no idea as to what a manifest file is and how to create one. Is is …

0
51
Member Avatar for alanhoney

Hi I need to put 2 x flash movies on a web page one to be shown from 12am - 12pm and the other from 12pm - 12am. Is there any java code that will do this ? Thanks Alan

Member Avatar for mikeandike22
0
80
Member Avatar for ZEEPLE

Hello All, I am creating a simple program that draws a simple house. My problem is I need it to run as an application as well as an applet from the same code..I think I am on the right track..Any help would be greatly appreciated check out my code to …

Member Avatar for ZEEPLE
0
194
Member Avatar for ZEEPLE

Hello All, Forgive my ignorance... I am creating a simple program that draws a simple house. My problem is I need it to run as an application as well as an applet from the same code..I think I am on the right track..Any help would be greatly appreciated check out …

Member Avatar for ZEEPLE
0
93
Member Avatar for nanosani

I am doing some very nasty computation using java but it always gives me a java.lang.OutOfMemory Error,after this nothing on the GUI works.i think its ok to have that error but atleast things should work afterwards. Please Advise

Member Avatar for nanosani
0
149
Member Avatar for freesoft_2000

Hi everyone, How does one convert the following a string to integer a integer to string a string to float a float to string a string to long a long to string a string to double a double to string I am trying to do a mini calculator. If someone …

Member Avatar for axiss
0
101
Member Avatar for nanosani

Any api function in java that allows a program to open and edit the contents(preserving the formatting of the file such as the font, size etc) of the file within a gui?

0
105
Member Avatar for nanosani

Can anyone please tell me how can I divert my keyboard inputs to any file or any string ... rather than the monitor ... can anyone code a sample statement for me thanks ..

0
66
Member Avatar for nanosani

While reading a topic in my book on comparison between java and c ++ ... I read one difference ..... java statements can be labeled while c++ statements cant be. Can anybuddy tell the use of labeling in java?

Member Avatar for nanosani
0
177
Member Avatar for ZEEPLE

Hello, This may not be the right forum for this but here goes...I am a student and am taking programming classes( JAVA ). It seems that I can compile my programs but cannot run them. My professor said my path was incorrect and gave me the correct path settings. I …

0
133

The End.