2,777 Posted Topics

Member Avatar for dantheman4

Is this the same problem? http://www.daniweb.com/software-development/java/threads/432580/drawing-indented-line#post1855318

Member Avatar for NormR1
0
191
Member Avatar for bad.boy.Vlad
Member Avatar for bad.boy.Vlad
0
261
Member Avatar for Seswing142

Take a look at the tutorial: http://docs.oracle.com/javase/tutorial/reallybigindex.html There are lots of example programs there. Start with: http://docs.oracle.com/javase/tutorial/getStarted/cupojava/index.html

Member Avatar for Seswing142
0
352
Member Avatar for sanilo

Can you make a small program that compiles, executes and tries to do what you want done? SOmething that we can use for testing.

Member Avatar for JamesCherrill
0
196
Member Avatar for Johannady2

> I don't know if it's assigned in str1 or str2. Add some printlns to print out the values of those two variables after they are read in so you can see what their values are. Be sure to put ID strings with the println so you know what variable …

Member Avatar for Susith Anuranga
0
353
Member Avatar for dantheman4

> Am I doing the right thing for my ouput Does your program print out what you want printed?

Member Avatar for dantheman4
0
355
Member Avatar for zeusprog
Member Avatar for zeusprog
0
3K
Member Avatar for AngelOfRock

Can you explain what you are trying to do? Do you want to wait after a certain event happens? or do you want to wait and then create an event?

Member Avatar for JamesCherrill
0
812
Member Avatar for kkcaddy

Is this the same question: http://www.daniweb.com/software-development/java/threads/431973/help-solve-this-code-problem Why didn't you reply to the posts on that thread?

Member Avatar for NormR1
0
195
Member Avatar for 47pirates

Could you include the import statements so the code will compile? Also I don't see a main() method for testing the code.

Member Avatar for 47pirates
0
105
Member Avatar for annu.mait
Member Avatar for NormR1
0
31
Member Avatar for zeusprog

Can you give an example of a hex String and what int value you want to get from it? An int holds 32 bits which can be represented with 8 hex digits. The example hex String you posted is longer than 8 digits and would not fit in an int. …

Member Avatar for zeusprog
0
232
Member Avatar for kkcaddy

The code compiles for me (after I fix a comment on line 50) Do you have another Date class defined on your PC? > EmployeeTest.java:30: incompactible types What compiler are you using? I've never seen this error before. It's best to copy and paste error messages and not type them …

Member Avatar for vinnitro
0
208
Member Avatar for john.damilare1

If you have a java programming question, please post your code and the questions you have about it. If you are getting errors, please post the code and the full text of the error messages.

Member Avatar for NormR1
0
72
Member Avatar for hszforu

> It is giving the errror Please copy and post the full text of the error message. Not sure what "rule" you are talking about. There is a rule that the class that you start the program execution with using the java command must have a main() method.

Member Avatar for hszforu
0
238
Member Avatar for LoyalOne2

Which part of the project are you having problems with? Pick one part and ask questions about your problems. Then work on it, get it to compile, execute and test OK and move to the next part. First thing I see is that the code is not in a class …

Member Avatar for Starstreak
0
151
Member Avatar for zeusprog
Member Avatar for LoyalOne2

Can you edit the code and give it proper indentations and formatting? Nested statements should be indented 3-4 spaces and should not all start in the first column. Proper formatting makes it a lot easier to read and understand code. > the test program but never allows me to input …

Member Avatar for LoyalOne2
0
2K
Member Avatar for admiralis

Can you post the program's output that shows the problem? When printing out data, it helps to add an id String that describes what the value is. For example: System.out.println("avg="+avg) Where does the program add up the total you want to display? You should display it outside the loop after …

Member Avatar for admiralis
0
277
Member Avatar for jalpesh_007

Can you make a complete program that compiles, executes and shows the problem? Also please post the output from the program that shows the problem. Have you tried debugging the code by adding some println statements to show the values of variables as they are changed and looked at? You …

Member Avatar for Taywin
0
3K
Member Avatar for dantheman4

> I want to show the BMI using JOptionPane.showMessageDialog method showing their full name and BMI.What am I doing wrong ? Can you explain what the program does that is "wrong"?

Member Avatar for NormR1
0
1K
Member Avatar for ihiroshi30

The indexes for arrays can have values from 0 to the length of the array -1. Check that the maximum value for an index is less than the length of the array. Use the .length attribute of the array to test against. Don't hard code a number: for(int i=0; i …

Member Avatar for JamesCherrill
0
244
Member Avatar for student_2012

Can you work on the errors one at a time? Comment out (add // in column 1) all the lines with errors on them except the first line with an error. Compile the code and copy the full text of the error message and the line with the error and …

Member Avatar for NormR1
0
427
Member Avatar for Kunal Lakhani

Are you saying that the stream parameter passed to the MyiReportViewer constructor is null? Can you look at the code that calls that method and see why?

Member Avatar for Kunal Lakhani
0
2K
Member Avatar for borchu
Member Avatar for borchu
0
3K
Member Avatar for kraykezia

The '+' operator is used for adding two numbers together or for concatenating two Strings. The compiler does NOT know what to do when one of the operands is type Object and gives an error message. What datatype is val? Can it be cast to a String or a number?

Member Avatar for NormR1
0
261
Member Avatar for andrewisthebomb

What package is the Keyboard class in? I don't recognize it as part of Java SE and don't have any doc for what it does.

Member Avatar for NormR1
0
1K
Member Avatar for Yarra

It would be fairly easy to rewrite the application to run as an applet. Put the GUI and code into a panel that could be either added to a JFrame for the application or to a JApplet for the applet. Any file I/O would have to be changed. But that …

Member Avatar for NormR1
0
265
Member Avatar for ITshard

You need to post the code you are working on and ask specific questions about the problems you are having. If you are getting errors, please post the full text of the error messages.

Member Avatar for stultuske
0
342
Member Avatar for ms_farenheit1

Without a working example these are hard to debug unless someone has had the exact same problem. Have you tried debugging the code by adding some println() statements to show where the code is executing etc? With the threads and listeners, there could be something that is not foreseen.

Member Avatar for NormR1
0
667
Member Avatar for boxofsnacks
Member Avatar for jsco2289

> is coming back errors. Can you post the full text of the error messages so the current code can be cleaned up. > can't figure this out. Can you explain where you are having problems?

Member Avatar for NormR1
0
231
Member Avatar for Stupid.Widget

> how to associate a specific cost with a specific product, The Map class is one way to associate one value(the product id) with another (the cost). You may not be using the Map class yet, so another solution would be an array. That could work for you if the …

Member Avatar for JamesCherrill
0
225
Member Avatar for Valiantangel

Please post the full text of the compiler's error messages so we can see what it is saying.

Member Avatar for NormR1
0
182
Member Avatar for Simes

If you are getting errors, Please copy the full text of the message and post it here. Otherwise explain what your problem is.

Member Avatar for JamesCherrill
0
255
Member Avatar for nisha123456

Please post the code you are having problems with. If you don't have code yet, what are your thoughts on how to solve the problem?

Member Avatar for NormR1
0
34
Member Avatar for scarletfire
Member Avatar for Yarra

Some of the steps: Move the GUI components into a panel that can be added to the JApplet panel Get rid of the main() method, use the init() or start() methods Put all the resources into a jar file vs reading them from disk

Member Avatar for Justinvzepeda
0
293
Member Avatar for aero31aero

> key input be recieved by my program and later by the program it was intended for. Java can't detect events sent to other programs.

Member Avatar for aero31aero
0
207
Member Avatar for rajesh1158
Member Avatar for bibiki
0
682
Member Avatar for trishtren
Member Avatar for trishtren
0
3K
Member Avatar for wheels031799

This is a java forum. What you posted looks like javascript. Try a javascript forum.

Member Avatar for wheels031799
0
159
Member Avatar for mia16
Member Avatar for sathya88

[QUOTE]what code placed for no or cancel button...to prevent closing window..[/QUOTE] Have you looked at the setDefaultCloseOperation method?

Member Avatar for hoon85
0
3K
Member Avatar for mikewyatt

Have you looked at the API doc for the two classes you are using. Scan through their methods and I'm sure you will find some that do what you want. http://docs.oracle.com/javase/6/docs/api/index.html

Member Avatar for mikewyatt
0
230
Member Avatar for Viped

Do you have code for testing the problem? The posted code does not have a main() method.

Member Avatar for Taywin
0
912
Member Avatar for shanki himanshu

> // getting error here Please post the full text of the error message. Also post the code you use for testing.

Member Avatar for JamesCherrill
0
154
Member Avatar for lbgladson

> how to do the loop to ask the user for the information and put it into the ArrayList. Which part are you having problems with? The loop getting the data from the user creating an object putting the object into the arraylist

Member Avatar for NormR1
0
2K
Member Avatar for haritha.devarakonda

Do you have any specific questions? If you are getting error messages you need help with, post them and your questions.

Member Avatar for NormR1
0
688
Member Avatar for ezekel

To call a non-static method defined in a class, you need a reference to an instance of the class. for example, this line uses the reference variable: s to call the peek() method. > s.peek()

Member Avatar for ezekel
0
589

The End.