35,618 Topics

Member Avatar for
Member Avatar for i2avi

Hi, I'm working on an assignment and, after a significant amount of googling and reading through my textbook, I can't seem to find a tutorial for anything similar to what I need to do. My aim is to produce a tool which draws a line on the screen based on …

Member Avatar for NormR1
0
108
Member Avatar for fraenckel

I need to write some software to catalog files in a directory hierarchy. The directories of this hierarchy nominally follow this structure: Country City Technology_Type Date Files are then placed under the Date directory. The problem is that until now, files are copied into the hierarchy manually. Occaisionally files have …

Member Avatar for fraenckel
0
110
Member Avatar for asad_80

Hi, I am building a game in which i have used array for applying 52 button, which works fine.But when i try to use Action Listener with the array of button and try use setEnable(false)or true it does not work.I am also sending my. [CODE] import javax.swing.*; import java.awt.BorderLayout; import …

Member Avatar for NormR1
0
144
Member Avatar for eswaramoorthy

Hi, I need to show the loading status(wait status) in cursor for all actions. If i perform some action([B]Login[/B]), then go to the backend and perform some process and it will return some value. Here this whole process will be taken some times. Now that time i want to show …

Member Avatar for javaAddict
0
152
Member Avatar for djenoe

this is my final code,, would you pls help me get this right java Menu driven code choices only in letters A, B , C [code] import java.util.*; public class Letters { public static void Menu() { System.out.println("Menu"); System.out.println("A. Summary report for a sales employee "); System.out.println("B. Print a pattern"); …

Member Avatar for javaAddict
0
136
Member Avatar for david cashin

Hi everyone, I am fairly new to programming, but I was wondering if there was a way to run the java program i make when it is not in the bluej compiler (i am using bluej). I would like so that i can double click an icon and my applet …

Member Avatar for NP-complete
0
2K
Member Avatar for gokul.raja

Hi, I have a problem in repainting in a JPanel. Situation: I have a ButPanel which extends JPanel. In this panel I draw some sequences with some text along with it, by overriding paint() method. Eventually the screen size exceeds as input increases I use a CompareFrame which extends JFrame. …

Member Avatar for gokul.raja
0
110
Member Avatar for wendellrob

Can anyone tell me why I get the following error message when I execute this code: `Exception in thread "main" java.lang.NoSuchMethodError: main` public class Pay { private double hoursWorked = 40; private double rateofPayPerHour = 10; private double withholdingRate = .15; private double grossPay; private double netPay; public void main(String[] …

Member Avatar for mitch9654
0
221
Member Avatar for kiwisteffu

Hello everyone! I've been lurking the forum for quite a while and decided to come to get some help as well. :) Right now I'm learning stacks and the like. I have to work on a program to write code to create a program that will use stacks. I'm not …

Member Avatar for vee_liang
0
110
Member Avatar for 1x4n

hi all i want to create an xml file from an array i've been googling but can't find the right one the closest one that i get is in [URL="http://www.higherpass.com/java/Tutorials/Building-Xml-With-Java-And-Dom/"]http://www.higherpass.com/java/Tutorials/Building-Xml-With-Java-And-Dom/[/URL] but it doesn't create an xml file like i wanted to i want to print and create it like c:\xml …

Member Avatar for 1x4n
0
182
Member Avatar for kiranpvsr

hello there Can anyone please tell how to create 2-D graphs in Java ? (X-axis and Y-axis stuff)

Member Avatar for Taywin
0
73
Member Avatar for Dorayaki

Hello, I try to do a program that can search whatever the user typed. But I kind of having a problem, which I cannot select everything matches. For example, I type "Hi there hello, what is your name ? please say hello" The I click on the search button. It …

Member Avatar for Taywin
0
99
Member Avatar for NewOrder

[code]import java.io.*; class Ex4 { public static void main(String[] args) { Console console=System.console(); String input; System.out.println("Please enter the number"); input=console.readLine(); int number; number=Integer.parseInt(input); int sum; sum=((number/10)*10); switch(sum) { case 60: System.out.println("E"); break; case 70: System.out.println("D"); break; case 80: System.out.println("C"); break; case 90: System.out.println("B"); break; case 100: System.out.println("A"); number=100; break; default: …

Member Avatar for NewOrder
0
86
Member Avatar for aladar04

i am newbie in java programming. So as a beginner, i need to understand technical terms from developers like you. Please answer the question in a way that a beginner like me would understand. I don't like links, i want a definition from you. Thanks a lot in advance.

Member Avatar for JamesCherrill
-1
72
Member Avatar for mahmoudali
Member Avatar for rch1231
0
59
Member Avatar for valuba

hello all, i just joined this forum. i actually joined because i am having a serious problem with my program which i believe u can help me solve. i am designing a web based application that authenticates user login using MySql as database, java as programming language and NetBeans 6.5 …

Member Avatar for ashalatha6
-1
123
Member Avatar for xdeja

[I]What I have accomplished so far... Design and implement a Nim class and a NimGame application to allow two human players to play the game of Nim. The game starts with four piles of stones. The first pile has 3 stones, the second pile has 5 stones, the third pile …

Member Avatar for Taywin
0
4K
Member Avatar for Alex_

Hi, i want to do a listener and this is what i have at the moment: [code] class MyListener extends MouseInputAdapter implements KeyListener{ @Override public void mousePressed(MouseEvent e) { if(e.getButton()==1){ out.println("MSE press "+e.BUTTON1_MASK); }else if (e.getButton()==2){ out.println("MSE press "+e.BUTTON2_MASK); }else if (e.getButton()==3){ out.println("MSE press "+e.BUTTON3_MASK); } } @Override public void …

Member Avatar for Alex_
0
162
Member Avatar for trelek2

Hi! I'm writing a Java simulation of a physical system. I wrote the whole simulation without any problems and later decided to add very simple GUI to paint the current sate of the system after each iteration. This is where the first problem occurred. After creating my JFrame and JPanel …

Member Avatar for trelek2
0
199
Member Avatar for mihir.p

We are planning to make a commercial GUI based software (for both desktop and mobile) targeting individual users. We plan to have good web 2.0 like rich application features (Google like dynamic auto suggest, drag and drop, browser based look and feel etc) and lot of user controls (trees, grids, …

Member Avatar for ~s.o.s~
0
170
Member Avatar for prem2

Hi daniweb team, I am new to Servlet concepts can any one tell why peoples use doGet and doPost method in the Same program.And What is the difference between doGet and doPost method. Thank you, With Regards, Prem.

Member Avatar for prem2
0
100
Member Avatar for ttboy04

Hello, I am getting "non-static variable friends cannot be referenced from a static context" error msg when I complie this program. If I create TreeSet inside the Names method body there is no errors when compiling and it works but that is not how I want it work. Could someone …

Member Avatar for ttboy04
0
147
Member Avatar for hazeeel

Hi all, I am a student doing a project on the superposition algorithm. I have to rotate 1 protein on top of the other protein after translation to match it as closey as possible. In order to do that, I need to write the codes in java and also, to …

Member Avatar for Rashakil Fol
0
55
Member Avatar for djenoe
Member Avatar for Victor C.

I was creating this code and I hit a brick wall. Maybe because I have been doing this code for 5 hours and I am burnt out. I just need help to get it working please. Here is the code [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Random; public class …

Member Avatar for NormR1
0
194
Member Avatar for virendrachandak

Hi, I need help with JSP session. My problem: I have a login page. When a user logs in then, i set a session and its expiration time. So, when the session is expired, the user will be redirected to the login page with a session expired message. I want …

0
83
Member Avatar for abbyo

I'm a newbie at java and I need help in coming up with the correct answer for this JOption java program. I enter in 2k, 30fps, 4min, 0seconds, and I should get 10.6842041GB (16.02630615GB total space needed). Please let me know if you have any advice on how I could …

Member Avatar for abbyo
0
144
Member Avatar for dylgod

Hi I am trying to ride a program that answers a mathematic equation but I keep getting the the error Exception in thread "main" java.lang.ArithmeticException: / by zero at EquationCalc.main(EquationCalc.java:48) I cannot get around it, does anyone have any ideas? [code]import javax.swing.JOptionPane; /** This program will calculate an equation following …

Member Avatar for Taywin
0
167
Member Avatar for hazeeel

I am a student, doing a project on superposition(bioinformatics). I am doing the part on rotation using matrices and I'm stuck. I need to open a visualizer (jmol) and adjust the angles of my protein structure at the same time via java codes. So I need to have 2 protein …

Member Avatar for remilt
0
83
Member Avatar for mayanknsit

Can any one suggest me the java code to find the i/o usage of a process? I am able to calculate memory usage and cpu usage of a process through jav code but unable to do so for io usage.

Member Avatar for NormR1
0
214

The End.