35,618 Topics

Member Avatar for
Member Avatar for dennysimon

hello all how is the code to move the cursor from textfield1 to textfield2 right after key "enter" pressed ? thank you denny

Member Avatar for JamesCherrill
0
120
Member Avatar for canarian

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 …

Member Avatar for adarshcu
0
88
Member Avatar for Erlendftw

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 …

Member Avatar for Erlendftw
0
151
Member Avatar for bombay1982

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 …

0
86
Member Avatar for Depsi

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 …

Member Avatar for Depsi
0
136
Member Avatar for MrHG24

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 …

Member Avatar for jackmaverick1
0
183
Member Avatar for SasseMan

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 …

Member Avatar for jackmaverick1
0
155
Member Avatar for scarletfire

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 …

Member Avatar for hfx642
0
126
Member Avatar for pikalife

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?

Member Avatar for hfx642
0
8K
Member Avatar for Dancer90

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 …

Member Avatar for joehms22
0
377
Member Avatar for Tsuchino

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 …

Member Avatar for Tsuchino
0
102
Member Avatar for j23

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; …

Member Avatar for Taywin
0
192
Member Avatar for mrgadgets

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? …

Member Avatar for Ezzaral
0
105
Member Avatar for prabhjitsw

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 …

Member Avatar for chrishea
0
255
Member Avatar for dave013

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 …

Member Avatar for strongguy12345
0
132
Member Avatar for bbman

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 …

Member Avatar for JamesCherrill
0
163
Member Avatar for geekman89

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 …

Member Avatar for geekman89
0
495
Member Avatar for canarian

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!

Member Avatar for Taywin
0
94
Member Avatar for vijaykavin10
Member Avatar for vijaykavin10
-2
94
Member Avatar for Joey_Brown

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 …

Member Avatar for Joey_Brown
0
126
Member Avatar for Yutxz

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 …

Member Avatar for JamesCherrill
0
219
Member Avatar for Pravinrasal

I want to increase column width automatically when record is added or record fetched from database in jtable in java.

Member Avatar for JamesCherrill
0
86
Member Avatar for ashley808

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 …

Member Avatar for JamesCherrill
0
760
Member Avatar for ali11

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 …

Member Avatar for JeffGrigg
0
765
Member Avatar for jinglylime

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 …

Member Avatar for mKorbel
0
95
Member Avatar for TheHelp

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 …

Member Avatar for TheHelp
0
93
Member Avatar for Dmiller071

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, …

Member Avatar for Dmiller071
0
1K
Member Avatar for sidra 100

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 …

Member Avatar for Taywin
0
169
Member Avatar for yapaarachchi
Member Avatar for TheSomalilander
0
224
Member Avatar for nimka

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 …

Member Avatar for Taywin
0
140

The End.