2,777 Posted Topics

Member Avatar for johny08z378
Member Avatar for NormR1
0
115
Member Avatar for muraj

Please create a small, simple program that compiles, executes and shows the problem. Hard to test code that does not execute. You can leave out the parts the are not relevant. Have you tried debugging the code by adding printlns to show how the variables change as the code is …

Member Avatar for NormR1
0
415
Member Avatar for Murphyv10

Please explain what your problem is. Copy and paste the full text any compiler errors here. Please edit your post and wrap the code in code tags. Use the [code] icon above the input box.

Member Avatar for MichaelCJ10
0
99
Member Avatar for lena1990

[QUOTE]he applet does not work with tcp[/QUOTE] please explain. What classes are you using? Are you trying to connect to a site that requires permission?

Member Avatar for NormR1
0
103
Member Avatar for tleverington1

[QUOTE]comes up with a bunch of errors [/QUOTE] Please copy and paste the error messages here. [CODE]Interface.panel.[/CODE] The syntax of that statement says the panel is a static variable in the Interface class. If panel is not static, you get an error message. Your use of java class names: interface …

Member Avatar for tleverington1
0
2K
Member Avatar for javalover

[QUOTE]it is not cropping the actual part which we selected.[/QUOTE] Is it a problem mapping the selection coordinates to the image's coordinates? Do you need to consider the image's location on the screen to find the coordinates within the image? Print out the coordinates for the mouse and for the …

Member Avatar for javalover
0
2K
Member Avatar for mjselkirk

[QUOTE] it isn't working[/QUOTE] Can you explain what the program does and what is wrong? Try debugging the program by adding println statements to show the values of variables as they are used and changed. The print out will show you what the program is doing so that you can …

Member Avatar for NormR1
0
158
Member Avatar for Sommy

How many Mang objects does the code create? How many should it create? Add a println in the Mang constructor to print a message.

Member Avatar for NormR1
0
279
Member Avatar for turt2live

An idea: Connect to the socket so the accept method returns and then have the code exit the thread.

Member Avatar for richieking
0
648
Member Avatar for Hussam Alahmadi

What does your code currently print out and what more does it need? Can you paste here the program's current output?

Member Avatar for stultuske
0
113
Member Avatar for enterpise

[QUOTE] make the server and all the other clients receive the message [/QUOTE] The server could forward the message it receives to all the clients that are connected to it. If there is a list of clients, you could have some selection criteria to choose which one(s) to send any …

Member Avatar for NormR1
0
167
Member Avatar for makehaste

[QUOTE] java.lang.NullPointerException at FatGramsPanel$FatListener.actionPerformed(FatGramsPanel.java:54)[/QUOTE] What variable has a null value on line 54? Then why is its value null? Do you know the difference between local and class variables and that local variables will shadow the class variables? Check that you have not defined any variables in two places: class …

Member Avatar for makehaste
0
299
Member Avatar for raul8
Member Avatar for NormR1
0
211
Member Avatar for javaprog200

Swing classes use double buffering. I you use a JPanel class, override the paintComponent method for your drawing and add that to the applet, the flickering could go away.

Member Avatar for javaprog200
0
203
Member Avatar for jadeplaza
Member Avatar for TIM_M_91

[QUOTE] method class to read the getText from my GUI class?[/QUOTE] You would need a reference to the GUI class in the method class that you could use to call the GUI class's getText() method. String someText = refToGUIClass.getText();

Member Avatar for stephen84s
0
186
Member Avatar for raym.mart

What is the java program supposed to do? What is a record file? Start by reading the tutorials: [url]http://docs.oracle.com/javase/tutorial/reallybigindex.html[/url] [url]http://docs.oracle.com/javase/tutorial/java/TOC.html[/url]

Member Avatar for raym.mart
0
227
Member Avatar for wonderlandslost

Try changing it in the other place. Leave the method definition as it was and change what you pass to the method to be a Triangle object. Create a Triangle object from the variables: b,h, etc and pass that to the addTriangle method.

Member Avatar for NormR1
0
254
Member Avatar for 03hasnam

[QUOTE] update the file on a regular interval,[/QUOTE] Look at using the Timer class. It can call your update method on a regular interval.

Member Avatar for NormR1
0
91
Member Avatar for nidheeshkumar.r

Can you Describe what you mean by a feature? Are you reading an image from a database and want to know its size?

Member Avatar for NormR1
0
1K
Member Avatar for jackbauer24

What is the value of the classpath when you try to compile the program? The classpath should contain the folder that contains the start of the package path. The classpath plus the package path should point to the class file. There should not be any overlap between the two paths.

Member Avatar for NormR1
0
110
Member Avatar for javitis

Please show the String you have as input and what you want the output to be. The methods split or indexOf and substring could be useful for extracting parts of a String. Post the code that shows how you are trying to solve the String parsing problem.

Member Avatar for stultuske
1
304
Member Avatar for Hypnos_16

Can you post what the program's current output is? Why does the "proper way" contain a comment on line 3?

Member Avatar for stultuske
0
208
Member Avatar for glebovg

[QUOTE]What is wrong with my code?[/QUOTE] Can you explain what the problem is? Does it compile? Does it execute? What are the results of the execution? Please post the output and explain what is wrong with it.

Member Avatar for glebovg
0
261
Member Avatar for bela_code

[QUOTE]need a complete code for a car class with the following attributes;[/QUOTE] Have you asked Google? You have a better chance of getting it there than here.

Member Avatar for ztini
0
437
Member Avatar for bela_code

Duplicate post at [url]http://www.daniweb.com/software-development/java/threads/414871[/url]

Member Avatar for NormR1
0
119
Member Avatar for fallen21468

Where does the code get the image from? Where do you want to show the image? Why are you using the Scanner class?

Member Avatar for fallen21468
0
14K
Member Avatar for userct

Is this the same problem? [url]http://www.javaprogrammingforums.com/algorithms-recursion/14155-sorting-strings-new-post.html[/url]

Member Avatar for userct
0
236
Member Avatar for gedas
Member Avatar for NormR1
0
219
Member Avatar for loserspearl

You need to add some code to the main() method. The java program starts the program's execution by calling that method. Your program would immediately return without doing anything.

Member Avatar for loserspearl
0
180
Member Avatar for MsBear92

It will be much easier for anyone to help you if you write a small simple program that compiles and executes with the code that you want to have rotate an image. Most of the code you posted has nothing to do with rotating an image.

Member Avatar for NormR1
0
394
Member Avatar for crazymidget01

Sounds like an algorithm/logic problem. If you have the algorithm, and have specific questions about how to implement it in java, please post your questions. Can you list the steps in solving the problem and where you are having the problem.

Member Avatar for ejosiah
0
3K
Member Avatar for ateeq90

Are you asking for the information that would be shown in a variable cross reference listing if the compiler were to generate such a thing? You'd need a java language parser to scan the source and generate a cross reference.

Member Avatar for NormR1
0
97
Member Avatar for AbdullahJava

[QUOTE]what method do i need to use for the alphabetical order[/QUOTE] You are using the method: compareTo that I would suggest. Can you explain what your problem is with the program?

Member Avatar for NormR1
0
2K
Member Avatar for Afropuff01

Define the Scanner variable outside of the method and assign it a value in the method where you can wrap it in a try/catch block.

Member Avatar for NormR1
0
217
Member Avatar for rizzi143

Please edit your post and wrap the code in code tags. Use the [CODE] icon above the input box. [QUOTE]i need to generate the random number [/QUOTE] See the Random class for a way to generate random numbers.

Member Avatar for ejosiah
0
262
Member Avatar for carolinatech

Put the loop around the code that asks the user for input and gets his responses. Try it a few ways and change it if it doesn't do what you want. Do some experimenting to see where the best place is to put it. Please edit your post and wrap …

Member Avatar for zeroliken
0
286
Member Avatar for sharvil_maniyar
Member Avatar for JamesCherrill
0
810
Member Avatar for nickliutw

[QUOTE]some compiler error.[/QUOTE] Can you copy and paste here the full text of the error messages? It has important information about your problem. Have you read the API doc for the Java SE class Iterator? The compiler doesn't think the class has the method you are trying to use.

Member Avatar for dantinkakkar
0
152
Member Avatar for lassy85

A main difference between using console I/O with a user and a GUI is that the program doesn't ask a question and wait for the response in the same way. With GUI the program shows a screen with the question and some input areas and buttons that the user can …

Member Avatar for lassy85
0
176
Member Avatar for riahc3

What does the FTP server do when your program connects to it and sends it instructions and data? Are there any error messages? What packages are you classes in? You don't show the import statements for the code.

Member Avatar for riahc3
0
217
Member Avatar for NicoleD90

First thing you need is a list of all the steps the program needs to do to solve the problem. So make a list of the steps. When you have them, then take them one at a time and figure out how to write the code in java to do …

Member Avatar for NicoleD90
0
700
Member Avatar for javaprog200

It works for me. I see a vertical dividing line between the two JTextFields. Try typing something into the text fields. Try putting a String into them in the constructor.

Member Avatar for NormR1
0
144
Member Avatar for abraham Nkomo

What tutorials have you read? Go read the API doc for the wait and notify methods of the Object class. There is a discussion of Threads and monitors there. For learning how to use synchronized and threads, you should write a simple program to use those features. The code you …

Member Avatar for NormR1
0
91
Member Avatar for slasherpunk

[QUOTE]java.lang.NullPointerException PageCount.doGet(PageCount.java:24)[/QUOTE] Look at line 24 and find the variable that has a null value. Then backtrack in the code to see why that variable does not have a non-null value. If null is valid value, the you test for it before using the variable. [CODE]if(name=="myid")[/CODE] Use the equals() method …

Member Avatar for NormR1
0
333
Member Avatar for learntosucceed
Member Avatar for shean1488

[QUOTE]puzzle.toString().substring(11)[/QUOTE] What is the String that is returned by that call to substring? For debugging, get that String into a separate String variable and print it out so you can see what the program is doing. Be sure to add delimiters on each side of the String so you can …

Member Avatar for DavidKroukamp
0
311
Member Avatar for Stjerne

You don't show what is printed out by the program. Showing the output would be helpful in determining the program's problems.

Member Avatar for stultuske
0
182
Member Avatar for blake81
Member Avatar for Hussam Alahmadi

Can you post what the correct answer should be? Try debugging your code by adding println statements to show the values of all the variables that are used, print them out every time their values change. Use an id String with the print out so you know what is printing: …

Member Avatar for dantinkakkar
0
133

The End.