35,618 Topics
![]() | |
hello all how is the code to move the cursor from textfield1 to textfield2 right after key "enter" pressed ? thank you denny | |
Hello! I am writing a java program. This application will work on very slow computers too. 1) My application prints on the command line logs about what action did the user. Sometimes one action needs to write 50 lines on command line. Sometimes 2-3 lines... But these 50 lines are … | |
Hello there Daniweb community, i am creating a 2d game in Java, however i have a problem. I googled up KeyListeners for JFrame, as they didnt work as usual, and i found out that when using KeyListeners with JFrame you have to set focus, right? Well. I have Googled abit … | |
When I am trying to create Stateless Session Bean in Eclipse the finish button is not working(is not highlighted). Please find picture attached. Anybody knows why ? I tried many different options, looks like bug in eclipse. I showed that to friend of mine who is experienced ejb programmer and … | |
Hii all, I have an assignment in my java course and i just did the required 1 , and the else is very confusing for me , I'll be very appreciate if any one could help me for 2nd required and then ill try again in the rest . <URL … | |
Hey guys, I have been having a problem with converting an interger into string for input purposes. For example, I am trying to make it so when the user inputs his/her name and it is an integer the program will not accept it. The IBIO file is the input method … | |
Hi! I'm looking for a way to make an application (app1), separate from another java application (app2), that can acces the GUI of app2 and also listen to all events that are passed to app2. I would like to be able to get hold of the frame of app2 so … | |
HI I was wondering what is wrong with this piece of code as it compiles but then it prints java.lang.null exception in the terminal. and it prompts the red line. I am basically trying to create a ticketoffice class that would store information of 3 users who are only allowed … ![]() | |
how do you write the "go to" command in java? like a command that allows me to go back to a previous part of the program and rerun the program in a loop? ![]() | |
I am doing a project in class for computer science. I have to make a hangman game that consists of the following: Get the words from a file and pull in the next word after each game, display the word as dashes for the user to guess, prompt the user … | |
Hi everyone, I'm a fairly new Java student and I need some help regarding subclass. This is what I'm trying to do: Basically, I created a Superclass called Person, and from it I created a subclass called CollegeMember. Now, I need to divide the CollegeMember subclass to "Lecturer", "Student" and … | |
hi, how do you get the html file to run the java applet in a webbrowser. I need to have a html file which will allow me to view this applet in a web browser. im using eclipse to write the code for the applet. [CODE] import java.awt.Graphics; import javax.swing.JApplet; … | |
I want to start develop software in both Java and C++. I am previously develop app for website so I am really not familiar with desktop programming. If we do code in Java, I believe we need a development tool with GUI so which one is the widely use nowadays? … | |
Hello Everybody ! i have a few questions for u I have already made an appointment booking website on PHP using PHP Designer as editor and on WAMP platform, i run it on localhost. The website consults Database and puts forward the times available and lets users fix appointments and … | |
think of a number and allow the user to guess it [code]import java.util.*; public class ThinkNumber { public static void main (String args[]) { //generate number in range 1 - 100 //prompt user to enter guess //loop until correct number is guessed //check guess and output hint //guess is correct … | |
Hi all, here's a kinda bullet-pointy explanation of what i have - I have a simple JFrame - I create a JPanel called 'ContentPane' [CODE]contentPane = new JPanel(); contentPane.setBackground(SystemColor.window); contentPane.setBorder(new LineBorder(SystemColor.inactiveCaption)); contentPane.setLayout(null); setContentPane(contentPane);[/CODE] - the JFrame has a [CODE]JMenuBar -> JMenuBar -> JMenuItem[/CODE] - The JMenuItem has a MouseListener and … | |
Hello everybody. I am in need of an answer. How can I use the text from a string and use it as a variable's name? For example: I have an array: int xyz[] = new int[5]; And say I want to check if it's name is the same as a … | |
Hello! I need to ask password to user, to get administration rights for my java application when it works under linux (or any POSIX). Can someone help me about that? Thank you! | |
Hi May i know about the latest technology of j2ee and the framework Thanks | |
Hello; I have a following method that allocates memory for some objects. [CODE] public static int formStyleOfLyle(int a) { ObjectL[] numberL = new ObjectL[a]; if(numberL==null) { return -1; } return 0; } [/CODE] I really dont know what this does; but I need to check the return value of this … | |
My program receives no errors or run time errors, but for some reason it runs infinitely. I need help pinpointing the problem D: I will post additional information about the exercise I am trying to solve in this thread. [CODE] package captcrunch; /** * * @author Josh */ public class … | |
I want to increase column width automatically when record is added or record fetched from database in jtable in java. | |
I've never felt like a total moron until I took a Computer Science class. I'm trying to create a program that rolls a pair of standard 6 sided dice 10,000 times and outputs how many times doubles show up, using a "while" loop. I think what I'm trying to do … | |
I have no idea what wrong my cods when I press = button of my calculator nothing happens. [CODE]import java.util.Stack; import java.util.Stack; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.math.*; import java.util.Vector; public class Ahsan extends JFrame{ Stack s = new Stack(); private JFrame f; private JPanel p1,p2; private JTextField … | |
Hi, I'm having trouble with setting up my table. How do i get the header to show initially. I want "code", "Number" and "Value" as the header. And I want to know if the way i added the table is correct? Can you help me please. Thank you! [CODE] import … | |
Hi, I'm learning java and I have a problem. The getText() doesn't seem to work. What I am trying to do is to write a simple code, where I assign the text of a button to a string variable and print that string variable on the command line. I get … | |
Hi all, I'm working on a maze project with different types of robots. One of the robots is supposed to be a right-hand-rule robot which follows his right hand. The way I'm coding it so far, is I have an Enum Orientation. If the right hand is facing UP, DOWN, … | |
hi i have made a program to find average and standard deviation. n it read input from other. rest of things are fine plz guide me my output for Standard deiation sD comes NaN. i have searched alot bt couldnot find solution my code is [CODE]import java.io.*; import java.util.*; public … | |
how can i scan a character from scannner class( just like int-nextInt,Boolean-nextBoolean) | |
hi , i am new to programming in java , i developed a program in java , my program is take two input files , first file has one sequence and second file has multiple sequences and then compute the edit distance between these two files . my problem is … |
The End.