36,051 Topics

Member Avatar for
Member Avatar for teritori

hi everyone. I have a user interface with a login button(see attachment), The problem i'm having is: 1. When the login button is clicked, i want the frame to dispose.and another frame(timerframe) to be visible. 2.The login button has an actionlistener within it. 3.The login button also connects to a …

0
63
Member Avatar for wgrogers

It's been a long time since I had this happen and now I can't seem to figure out how to get rid of about:blank. I've read thru a number of forums, each with their own different methodology, but yours seems to be the definitive. I'm no geek...I know just enough …

Member Avatar for wgrogers
0
223
Member Avatar for Mud_duck21

I wrote this program, however I can't seem to get it to read a string of numbers. Right now it inputs the numbers as single digits and also counts the white spaces. I thought that StringTokenizer would work, but I can't get it to. It compiles, but then errors out. …

Member Avatar for mikau nero
1
132
Member Avatar for teritori

Hello everyone. i'm new to the java world and i'm strugling to understand internal frames. I want to add a frame on top of another frame, and everything i try cant seem to work.Any help on this matter will be greatly appreciated. :?:

Member Avatar for Ruud
0
90
Member Avatar for bsridhar

Dear sir, This function converts a string to a numeric value. Provide two versions of this function overloading to return either a long or double value Here is the pseudo code for the FNVAL processing Validate the input string value If it contains any non numeric characters, then throw a …

Member Avatar for gusano79
0
162
Member Avatar for lawsstreet

can anyone help me with the code for a vending machine in java please im begging you guys i need in less than 24 hrs

Member Avatar for big_k105
0
144
Member Avatar for Micarox

Hi all I am currently doing a survey form which will automatically send the results to a specific email on the key of the submit button. I have tried writing out to a text file before but not to an email. Can anyone please help? Thanks a lot.

Member Avatar for szukalski
0
76
Member Avatar for JeffSyd

Hi all, I need to maintain a text file which contains only 10 lines. As a new line is added to the top - a line is removed from the bottom. So although the file is automatically updated regularly it will always contain only 10 lines. I know how to …

Member Avatar for red_evolve
0
116
Member Avatar for gandiva_skg

dear sir Hi, In text field I want to restrict No of character entered should be only 3 if fourth character entering in same TextFiled it should not allow. How to solve it ? Warm regards sunil

Member Avatar for szukalski
0
97
Member Avatar for Dani

I know that spiders are incapable of filling out forms and the like. But if I have links that have been dynamically generated client-side by some simple javascript, are they capable of following these links?

Member Avatar for Dani
0
220
Member Avatar for wmivey

I am trying to get more control on user input. I have written a couple of Exceptions to handle two different user inputs, but I want to program to retry it if it is invalid and allow the program to continue. I have tried using a labeled break and it …

0
82
Member Avatar for Paulbisch

Conveyor belt slideshow script- I am adding lots of images and linking them to the matching pages. Question: 1.Is there a way to set an anchor code so the slide show continues at the last clicked picture and does not start from the beginning ? 2. Opening the link in …

Member Avatar for Paulbisch
0
180
Member Avatar for Dani

How can I read a string in from the user? For example, I am writing a console-based java application which prompt the user to enter a string and then reads that string in. What is the opposite of System.out.println? ;) System.in.readln? I can't get it to work and I'm a …

Member Avatar for gusano79
0
264
Member Avatar for crazy

Hi, I get an error message at start up saying, This was after i deleted some adware which was changing my internet hompage to one with many pop ups Error Cannot load C:\WINDOWS\javayk.dll The specified module could not be found I downloaded spybot, adaware, system mechanic, PCbugdoctor to try and …

Member Avatar for crunchie
0
117
Member Avatar for mauriciorein

Hi, my problem is: Need execute a application and not display this application on screen, but need save the main Frame as image (JPG or other format) in one archive, or draw it in a variable in memory to use her as a texture of an object 3D. Please help …

0
62
Member Avatar for serluc

do you have simple code client and server for a smal example of chat multithreaded? :p

Member Avatar for Vinoth
0
117
Member Avatar for santoshmaya

Hi, I need an exampls program in java to store image datatype in ms-sql database.i am writing a jsp file in that i wanted attach a file.in oracle i wriiten like this,but i need in ms-sql.i required urgently.pls help me. code in java using oracle. i need it in ms-sql. …

0
242
Member Avatar for Ronnie

I have two classes. The first collects input data and calls a second class for inputing data from a file. After the data is read I would like to use it inother classes but am having problems getting the data back. To save space I will only show part of …

Member Avatar for Ronnie
1
163
Member Avatar for HiTleR83

Im new to java programming. I want to establish a connection to my MS-sql database using java. How do i do it?

Member Avatar for Paladine
0
85
Member Avatar for hakeem46

I wrote a program that was compiled successfully. I wrote another program to use it but it will not see it. I am using JDK 1.4._2 "import java.io.*; import java.sql.*; class RunPM4DataAdmin{ public static void main(String[] arg){ PM4DataAdmin trythis = new PM4DataAdmin(); int requiredSize = trythis.getSize(); System.out.println(requiredSize); } } Trying …

0
100
Member Avatar for doronsha

Hi All I am a c++ programer tring to run my exe from a java interface. But the java interface that i wrote run on windows and the c++ exe is in unix. This is not helping me: Process p = Runtime.getRuntime().exec("\\bmdth01\\ddef03\\ksh_sh"); the unix is mapped to my comutere via …

0
150
Member Avatar for redelao

I am pretty fresh in the java environment but i am working hard to learn. I wrote the code for a calculator, however I am having problems in making the memory buttons function properly. I have to create 4 memory buttons that function in the following way: When the memory …

Member Avatar for gusano79
0
201
Member Avatar for Radahl

I'm currently working on a program that's like target practice. You literally hit...targets! However, the constant blinking that occurs when the repaint method is called has become quite annoying! :mad: I have a Timer method coupled with the ActionListener to update the screen. The need for the update is because …

Member Avatar for gusano79
0
406
Member Avatar for johnroach1985

My problem is that :After using the program once how could i re-use it again? For axample :After i push "datalar"(meaning datas) and put the datas in after that you have to push "

Member Avatar for johnroach1985
1
176
Member Avatar for Radahl

Hi, this is my first post and I need help with a project. I'm trying to create a target with a recognizable boundary so when you click anywhere inside the circle, a point is added to the top-left corner of the applet. I've succeeded in being able to click inside …

Member Avatar for gusano79
0
195
Member Avatar for Ronnie

Hi I am working on an application with many arrays and the output needs to be in differnt formats on a page. That is I will have tables, graphics and regular lines of text. It would be nice to view the information and than have the ability to print it …

Member Avatar for Ronnie
1
150
Member Avatar for heifetz

hi, I have a little problem in my project that I came-up with this morning (programming a simulation of a 24h-pizza-dispencer) [COLOR=Navy]I need to count the decimals after the comma of a double[/COLOR] how do I have to write this? ex.: 12.12 -(outcome)-> 2 decimals 12.123 -(outcome)-> 3 decimals (the …

0
81
Member Avatar for cordobucs

I wrote a program, and when I compile I keep geeting cannot resolve symbol in four locations. Is there an easy way to fix the problem

Member Avatar for BountyX
0
121
Member Avatar for parisa

Hi all :) I'm trying write an email program in java which can send an SMS when an email is recieved. However, I dont know much about this like for example, do I need to have any authorisation from a telecommunications company to do this? Also, I want it to …

Member Avatar for maxim_kh
0
234
Member Avatar for jilshi

Property Description : (list bar) Property Description : null (submit button) ............................................................................. As you can see from the above, i need to choose option from a list bar. after choose an option, it will automatically show at below replacing the null. when the statement is display, i can change it …

0
81
Member Avatar for Dstoner

Can someone help me design the algorithm for this project. I am not asking for any code, just a plan of atack. [b][font=Arial][color=#8f0000]Option 3[/color][/font][/b] [b]Purpose:[/b] The purpose of this programming assignment is to pull together all the programming skills of this semester. The assignment will be an exercise in problem …

0
89
Member Avatar for Ronnie

I am (very) new to Java and am trying to convert a large VB 6 program to Java. My program does a lot of calculations and then outputs the information to screen, file or printer. My problem is outputting the data in a certain formate and viewing/printing the info. The …

Member Avatar for Ronnie
0
124
Member Avatar for comp_illiterate

:!: [size=4]My computer had a virus for months and i couldnt use it. it was called trojanhorse.exe or something like that. well, when my computer finally got fixed, my javascript stopped working and so did microsoft virtual machine. the error message says microsoft virtual machine cannot be found. class not …

Member Avatar for comp_illiterate
0
147
Member Avatar for elna

[size=3][font=Times New Roman]What parts of the client code if any need to be changed in a client-server system (i.e. code using sockets) if the server is moved and why? [/font][/size] [size=3][font=Times New Roman]What parts of the client code if any need to be changed in a system using RMI if …

0
85
Member Avatar for jilshi

i am creating my own web site using jsp. i plan to add 'chat service' like mirc or icq into my web site. how can i create the 'chat'? is there any third party software that i can use?

0
97
Member Avatar for 5334221234555

Ihave an application that is written using JSP and Java Servlet. Now I need to add more functions to the application. I need to allow the users to upload word files, and send it as email attachment. Please help. Thank you in advance for your help.

0
119
Member Avatar for clobbasaurus

[font=Comic Sans MS][size=4]Hi Everyone,[/size][/font] [font=Comic Sans MS][size=4]I am a student and I have been asked to make a program to create business cards. At the moment I have made a fully working application with file IO. The program basicly takes any input into the text fields and displays them on …

Member Avatar for BountyX
0
1K
Member Avatar for johnroach1985

there are two examples which are seperated by"-------" sign to use them just put them through a java creator.post for comments ------ "A rational anachist believes that concepts such as 'state' and 'society' and 'government' have no existence save as physically exemplified in acts of self-responsible individuals.He believese that it …

Member Avatar for Dani
0
145
Member Avatar for johnroach1985

well it actually works but the circle kind of slides instead of staying put.Help with the algorithm would be welcomed.(actually i need help:sad: ) ---------------------------------- import java.awt.*; import java.awt.event.*; public class hata{ public static void main(String args[]){ Pencere pen=new Pencere(); pen.setVisible(true); } } class Pencere extends Frame { int xcoor,ycoor,width,height, …

0
89
Member Avatar for sdr
Member Avatar for Nics

I am studying Programming and trying to get my assignment to work the problem is with the MAINTENANCE PART in red I can get it to work! Can anyone help!!!! public class Assignment2 { static final int TotalCans = 50; // The total number of cans avaliable static String Drinks[] …

Member Avatar for BountyX
0
143
Member Avatar for beginmatt

Alright i have the code [b]shapes[i][/b] Ahat would the equivalent of that be for a linklist named list? I tried [b]list.getdata(i)[/b] but it's not working. Can anyone help me?

Member Avatar for BountyX
0
74
Member Avatar for Iron_Cross

Ok, this is an extremely stupid question, and I feel retarded for asking, considering how much I've been studying Java. But anyways, here goes. Let's pretend I've created three classes, Class A, Class B, and Class C. Now in A I create an instance of Class B, let's call it …

Member Avatar for BountyX
0
116
Member Avatar for eltel1982

Hi there, I'm currently writing code for a translator. The task is to open a file from anywhere on my network, then display it and then allow to save the file. So far I have a window that allows a user to browse for a file, open the file and …

Member Avatar for Iron_Cross
0
199
Member Avatar for butterbloom

Don't know if you can help or not. I play a game called "literati" on Yahoo! The game applet is too small. I've never had a problem before on my other computers but I have a new Dell Laptop that is displaying the applet too small. Everything else seems okay. …

Member Avatar for BountyX
0
144
Member Avatar for Scotty72

Hi all, I have copied the following Java IO example from a manual: public class Act2_15 { public static void main (String args[]) throws java.io.IOException { int v = System.in.read(); System.out.println("Value read was " + v); } } but find that, when I compile and run it under bash, the …

Member Avatar for BountyX
0
136
Member Avatar for kalpana_shukla

Hi, I have a problem that my program is writing only single line from the dataset whereas I want to write whole data from the data file to be read and written on the screen. Somebody help me. This is my program: import java.io.*; import java.util.*; class QueryAnswering { int …

Member Avatar for BountyX
0
218
Member Avatar for Meldroz

[b][size=2][color=#7f0055]hey guys i need some help, i posted my assignment and also the code i have so far, i'm almost done i just don't understand how round robin part works. Write a fully documented class named Simulator that contains the main method that will simulate the system. [b]Your method should …

Member Avatar for BountyX
-1
221
Member Avatar for elna

[size=3][font=Times New Roman]Could anybody please tell me what is the advantage of declaring variables to be of an interface rather than class type?[/font][/size]

Member Avatar for BountyX
0
165
Member Avatar for Ron

I am very new to Java and I'm trying to write a Java program to read a ASCII text file, modify a field and save it. I'm not sure how to create the file definition so I can break out the individual fields. The records and fields are all fixed …

Member Avatar for Meldroz
0
167

The End.