32,204 Topics
| |
I really want to have an example of of this program in java but i cant find it in here.. >..pls response ASAP.. >thnx | |
see the attachment Prac11 on how to write GUI | |
Hi all , I tried one simple animation in Swing . Here's what the program has to do : when a button called "play" is clicked a circle should be moved from upper left corner down to the lower right corner. [code=java] import javax.swing.*; import java.awt.event.*; import java.awt.*; public class … | |
i am working on a cod of (attaxx game),and i have a problem with the buttons i can determine the co-ordinates (x,y) of the button and i want to change its background color but i do not have a reference of the jbutton object it self.is there is any way … | |
> Write a function that accepts an array of integers and returns the second largest integer in the array. Return -1 if there is no second largest. > The signature of the function is public class bc { public static void main(String[] args){ } int f(int[ ] a) { } … | |
Hai everyone, I need to find the Latitude and Longitude values for any one of the Particular location from the Google Maps, using pure java class. I know, it's done by using javascript, but i need to use pure java class not javascript. If we provide full address of the … | |
plz send me inventory management project in java immedietly | |
Says grade isn't initializing import java.util.*; public class Test { static Scanner console = new Scanner(System.in); public static void main(String[] args) { char grade; switch (56 / 10) { case 0: case 1: case 2: case 3: case 4: case 5: grade = 'F'; break; case 6: grade = 'D'; … | |
Okay so I'm supposed to read in grades from a file add them together and get the average the letter grade the minimum grade and the maximum...no setting variables to the read in...and the sentinel is -1 at the end of the sequence...I'm a bet messed up...this is what i … | |
Hi everyone, I am new to java. I have a question? How can I store in to an array the values that the user enter, so later I can compare the two sets of array that the user enter. This is what I have: System.out.print("This program is going to find … | |
How can I .getText(long) ????? I can not figure out how to get a string from a GUI and turn a String into a long . | |
[B]I'm new to java servlets ...I installed Sun java SDK which acts as an server for running servlets.I spents many hours first just to compile servlets and generate the class files but now I don't have any idea how to run servlets on SDK. I tried a lot on Apache … | |
hai, Its very urgent.can somebody tell m,how to add two textboxes and then display the result in the third textbox ,using keypress -in javascript.... regards.... | |
/*This is a what I've written so far- see below.*/ /*The program is to ask a user to insert values into array, print those values showing both index # and corresponding value, return average, min, change value of 1 array element, delete 1 element, compact the array. ALL these MUST … | |
Hello Everyone, I feel like I'm going around in circles! I can't figure out why by JButtons won't perform their assigned functionality. I have a first, previous, next, last, and save button. I've created actionListeners and actionEvents for all butons, but they still produce nothing. Any insight is extremely appreciated!!!! … | |
hellow friends, how can i get server port number by using java. please give me exampls codes for this program. | |
Here it goes, we were told to make a Multiplication thingy that the user can [B]Input[/B] something like [I]5x5[/I] and then the [B]output[/B] will be the [I]answer[/I]. We were not taught on how to do it yet so I don't have any idea. I'm just hoping that someone can teach … | |
i face a problem here.. i am creating a compiler for java, the compilation part is done,and now i have a problem in the running the class compiled.. i use the runtime.getruntime().exec() method to run the class.. and what happen is, for example, i have a simple java file like … | |
okay I have been working on a little project of my own for a while. At the moment it prints out the chapters read and once 100% of the chapters read is greater than 100 it shows on the next line of my code the number of times the book … | |
Hi all, I learned that "local static variable" with in a function is not allowed in JAVA as in C++. I guess it violates the rule of "static" as it's should not depend on objects but is there any alternative way avaiable to accomplish that ? (i.e scope is restricted … | |
I didn't think I'd need help again, but I'm pretty sure its not as bad as last time. I'm trying to increment the time in Time2.class, and that compiled. The problem is I can't make a class to use it as per the assignment, and that's because I used void … | |
[COLOR="blue[B]"]hi all, i need a help in jsp. i want to open a word file in an application using jsp. and it should not in browsers. just the word application only should open. if u have any coding for this means pls send it. very urgent .hurry up! pls.. [/COLOR][/B] | |
hi canyone help in how to write code to search in java.just like search button in google. | |
I'm trying to get this ISBN checker to work. I've used the formula from this [URL="http://mathworld.wolfram.com/ISBN.html"]site[/URL] and also this [URL="http://en.wikipedia.org/wiki/International_Standard_Book_Number"]site[/URL] and it seems to work fine [B]except[/B] for the ISBN of my Java book. When I compute my book's ISBN (0131496980), it is apparently invalid. I have tried the other … | |
I have a query about ISBN. Some books have one ISBN, SOME have two. Is it appropriate to use ISBN AS a primary key for a book table ( as I have seen it in one book). What is ISBN basically. What can be the appropriate primary key for book … | |
Hi, I'm going to begin school for CS in a couple of months, and am trying to get started with some of the material on my own. I need to learn some Java; I've done a bit of C++ in the past. The prof sent me an email saying at … | |
Hey guys, i have a linkedlist called CDArtist and one called CDTitle. i have all the functions and classes written and working except one which i have no idea how to. I need to be able to delete a CD by the name of the title or artist but this … | |
Hi, we are planning to implement a software, which can read the information about all the Nodes connected in its newtwork, as soon as this software is installed in networked PC. This could be done with C/C++ system level programming. But we are thinking to do it in Java, J2EE. … | |
The End.