2,777 Posted Topics

Member Avatar for AJG

[QUOTE]I seem to have to write the methods from "Tile" in the subclasses as well to get them to work, [/QUOTE] Which methods? What changes need to be made? Hard to make suggestions with these short pieces of code.

Member Avatar for AJG
0
287
Member Avatar for sirin_adam

I don't know if a java program can change a system environment variable. You'll probably need to use native code.

Member Avatar for NormR1
0
159
Member Avatar for bangor_boy

[QUOTE]i get the error Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.JButton cannot be cast to javax.swing.JComboBox[/QUOTE] Please include the text of the error message that shows the source line number. What is there about the error message you don't understand? It says you are trying to cast an object to another …

Member Avatar for NormR1
0
855
Member Avatar for sathya88

[QUOTE]menu item actionlisteners are not working...except exit.[/QUOTE] Add a println first thing in the listener method to show when it is called and what the value of the ActionEvent is. Then you'll know which menu items have listeners. You need to add more code for the menu items you want …

Member Avatar for JamesCherrill
0
233
Member Avatar for jimmylee7706

[QUOTE]I'm having problem with my if statement however.[/QUOTE] Can you explain what the problem is and which if statement you are having problems with? [QUOTE] how can I make the if statement update the actual variable?[/QUOTE] Which variable is the "actual" variable?

Member Avatar for jimmylee7706
0
235
Member Avatar for DarkPheonix

One thing you could do is explain what the printed output means? Incremented Number:1111 Incremented Number:0000 <<<<<<<<<< should this be 10000

Member Avatar for DarkPheonix
0
895
Member Avatar for janice91

What have you tried so far? First write a main method. Make it simple with a println for testing. Compile and execute the program to see if it executes and prints out ok. Then look at the first method you are to call. Consider the following: What arguments does it …

Member Avatar for JeffGrigg
0
198
Member Avatar for Nathan_11

[QUOTE] can someone help me create the code [/QUOTE] We'll help you get your code to work when you post it. First you need to describe what you are trying to do in your program. The title doesn't really describe what the problem is.

Member Avatar for JeffGrigg
0
291
Member Avatar for Shanti C
Member Avatar for sha11e

The Scanner class is a very easy way to get user input. It has a lot of useful methods that can help you determine what will be read and to convert the input from String to different data types. There are lots of different I/O classes for reading data. Each …

Member Avatar for OblibSystems
0
179
Member Avatar for vijaybrar

[QUOTE]knowing whether the input is wrong[/QUOTE] Your code has lots of if statements. Add some more to test if the input is wrong. You could make a loop to get the user input, test if the input is valid and exit the loop if it is. If the input is …

Member Avatar for vijaybrar
0
510
Member Avatar for zachf632
Member Avatar for NormR1
0
74
Member Avatar for MissJava

You forget to ask a question. If there are error messages, please copy and paste the FULL text here. Are you having problems? What does the program do and what do you want it to do differently?

Member Avatar for MissJava
0
121
Member Avatar for dhija22

Do it one step at a time [QUOTE]how to use the get[/QUOTE] Define what the get method should return? Define what arguments it needs to find and return that value. Write the code logic to find the value to be returned. Return that value

Member Avatar for NormR1
0
1K
Member Avatar for dantinkakkar
Member Avatar for peter_budo
0
128
Member Avatar for dhija22

[QUOTE]when i compile it i dont take any result.[/QUOTE] That is good. The compiler doesn't print out any messages if it did not find any errors. What happens when you try to execute the program?

Member Avatar for NormR1
0
121
Member Avatar for sirin_adam

You could call the c compiler from the java program using one of the classes: Process, Runtime, ProcessBuilder or Desktop

Member Avatar for sirin_adam
0
218
Member Avatar for Vongola_Takeshi
Member Avatar for Vongola_Takeshi
-1
9K
Member Avatar for Majestics

[QUOTE] number length remain fix[/QUOTE] Look at the String format method.

Member Avatar for Majestics
0
119
Member Avatar for jhopwood

Can you reduce the size of your program or create a small program that will demonstrate your problem. Your posted code is TOO big. [QUOTE]how to code my add, modify, search, delete, and save buttons in my program. The buttons need to also adjust the size of the array once …

Member Avatar for NormR1
0
328
Member Avatar for dantinkakkar
Member Avatar for peter_budo
0
144
Member Avatar for xinwei

I did not have a problem with the first two issues. Can you be more specific about the other two issues? The value of dy0 is 3 in the posted code. What is different about how the posted code runs when you change dy0 to 1? You need to try …

Member Avatar for xinwei
1
756
Member Avatar for varun45

Not a lot of java programming in this project description. Why do you think java would be a choice?

Member Avatar for peter_budo
0
165
Member Avatar for zaxahmed

[QUOTE]could not succeed[/QUOTE] It would help if you would describe in detail what your problem is.

Member Avatar for NormR1
0
168
Member Avatar for lena1990

[QUOTE] i have an error[/QUOTE] Please copy and paste the error message here.

Member Avatar for lena1990
0
84
Member Avatar for sirin_adam

Have you tried the Scanner class's useDelimiter() method? Try this: [CODE] Scanner input = new Scanner("332.234.32.11.11.222:8080"); input.useDelimiter("\\."); while(input.hasNext()) { System.out.println("next=" + input.next()); } [/CODE]

Member Avatar for sirin_adam
0
843
Member Avatar for ishwar panjari

You'll probably need native code to change the Registry. JNI can connect to that code.

Member Avatar for NormR1
0
62
Member Avatar for zaxahmed

If this is a homework problem, you should read over your assignment and come up with some specific questions. Pick out the parts of the assignment that you need help with and list them with your questions. Look at the GridLayout manager for one way to get a 3x3 grid.

Member Avatar for hfx642
0
391
Member Avatar for anand01

[QUOTE]when i call get url method it shows null value.[/QUOTE] I assume you are talking about the dbURL variable. Your code shows that the value of the varible: dbURL is initialized to an empty String. Does the setDbURL method set it to null? Add a println in that method to …

Member Avatar for anand01
0
145
Member Avatar for sathya88

[QUOTE]incompatible types found : java.lang.ProcessBuilder required: java.lang.Process[/QUOTE] The compiler does not think that a Process object is compatible with a ProcessBuilder object. Why do you want to assign a ProcessBuilder object to a Process variable? You should change your code to use a ProcessBuilder variable.

Member Avatar for JamesCherrill
0
8K
Member Avatar for yt0729

[QUOTE]But it doesn't work.[/QUOTE] Please explain what happens. [QUOTE]How can i make it row by row?[/QUOTE] Use a layout manager that will do that. Perhaps the GridLayout

Member Avatar for mKorbel
0
191
Member Avatar for bangor_boy

If you keep track of where the currently displayed items came from, say with an index, then you can go forward by incrementing the index or backward by decrementing the index. The display routine will get and display the n items start at the current value of index.

Member Avatar for mKorbel
0
145
Member Avatar for ecclesiastes3:1

[QUOTE]the image needs to move diagonally[/QUOTE] Does that imply a special way that the x and y values should change from one drawing of the image to the next drawing? Should there be a relationship between the x,y for one position and the x,y for the next position? If so, …

Member Avatar for NormR1
0
120
Member Avatar for vinaysrk919

[QUOTE]i found error in the following code....[/QUOTE] Please explain. Post the full text of any error messages.

Member Avatar for NormR1
0
115
Member Avatar for llemes4011
Member Avatar for baby_c

[QUOTE] the code generates errors[/QUOTE] You forgot to post the errors. Please copy and paste here the full text of the error messages.

Member Avatar for JamesCherrill
0
382
Member Avatar for gman1991
Member Avatar for venktech

Another solution is to create a working image with BufferedImage, draw your lines on the working image and then in the paintComponent method, draw the working image on the screen. Your previously drawn figures would be preserved in the working image. This approach would be similiar to the double buffering …

Member Avatar for venktech
0
371
Member Avatar for akasekaihime

[QUOTE]gp(long,long)[/QUOTE] Where do you define a gp() method that takes 1 long as parameter? The compiler can not find it. Please post the full text of the error message from the compiler. Do NOT edit them. It's confusing to use the same name for a variable and for a method. …

Member Avatar for hfx642
0
168
Member Avatar for thompsonSensibl

[QUOTE] I don't know how to keep track of the other spices' order of preference. [/QUOTE] Sounds like a sort should give you the spices in order of preference. How are you storing the data about your spices? You should create a Spice class that stores the info for each …

Member Avatar for NormR1
0
96
Member Avatar for djbuclkle

Compile this for a message from the compiler about raw type: [CODE] ArrayList aStr = new ArrayList(); aStr.add("sdf"); [/CODE] What is the "type" of aStr?

Member Avatar for NormR1
0
46
Member Avatar for D3X

Is this the same question: [url]http://www.javaprogrammingforums.com/java-theory-questions/10362-creating-transfer-function-atm-simulation.html#post39518[/url]

Member Avatar for D3X
0
4K
Member Avatar for thanatos1

[QUOTE]some tips on reading the text file as binary[/QUOTE] What do you mean by "reading file as binary"? Most text files contain characters. If the text is English, there are 26 letters + 10 digits and some miscellaneous characters. Each character takes up one byte of the file. A byte …

Member Avatar for NormR1
0
125
Member Avatar for jhopwood
Member Avatar for sciprog1

Are you looking to write some java programs and need help doing that? Your post seems to be a search for some product.

Member Avatar for hfx642
0
170
Member Avatar for Ashley256

What part of this problem involves the use of java? Do you have the command line that you want to use in the batch file? Have you tried creating a batch file with that commmand line in it? What happened? Have you done a Google for how to create a …

Member Avatar for NormR1
0
68
Member Avatar for nyaxinya

Make a list of the programs requirements: 1) do this 2) do that etc and then say which ones you have completed and which ones you are working on. Please edit your code and wrap it in code tags. Use the [code] icon above the input box.

Member Avatar for Aviras
0
134
Member Avatar for ssai

[QUOTE]have a pattern as A+B*C[/QUOTE] How is that a pattern? Can you define a pattern? Is xe=+@2 a pattern? And this is confusing: [QUOTE]have a match starting from string [3], as AAC [/QUOTE] Is [3] ADE

Member Avatar for ssai
0
200
Member Avatar for Xrrak

[QUOTE]so tutorial online time is limited.[/QUOTE] You can download the tutorial and have a copy on your PC. Same for the API doc. Look at these sites: [url]http://www.oracle.com/technetwork/java/javase/downloads/java-se-7-tutorial-2011-07-28-431908.html[/url] [url]http://www.oracle.com/technetwork/java/javase/downloads/index.html[/url]

Member Avatar for quuba
0
124
Member Avatar for Haridha

Have you looked in the java tutorial? [url]http://download.oracle.com/javase/tutorial/reallybigindex.html[/url] Or here: [url]http://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html[/url]

Member Avatar for stultuske
-2
106

The End.