1,963 Posted Topics

Member Avatar for emilo35

Are you saying that you saved the images to a file, then changed the class and then tried to read? If yes then Yes you will not be able to read them because: You serialized instances of this: [U]SerializableImage[/U]. the files containes this: [U]SerializableImage[/U]. But whan you read them you …

Member Avatar for emilo35
0
185
Member Avatar for app_path

They both do the same thing it doesn't matter which one to use.b Whether you pass the value of B to the A through the constructor or not it the same: [B]1.[/B] [CODE] B bInst = new B(); bInst.num = 10; // here we are referring to the num of …

Member Avatar for javaAddict
0
109
Member Avatar for DifficultUsrnme

[QUOTE=danswater;1145055]ok dude it has a lot of syntax error . . just use an IDE to figure out what is the error of your code. Because it's so hard to figure out when you compiled it in the cmd[/QUOTE] It doesn't make any difference whether it is compiled using a …

Member Avatar for BestJewSinceJC
0
130
Member Avatar for ceyesuma

I think it is because when you call the super constructor, you have to pass values to it as parameters. In order to get the first the first argumnet this needs to be called: [CODE]super([B][COLOR="Red"]getGuideName[/COLOR][/B]() + (++openFrameCount), true, true, true, true)[/CODE] Meaning that when you do the above it is …

Member Avatar for ceyesuma
0
193
Member Avatar for sharathk60
Member Avatar for jresh_101

[QUOTE=jresh_101;769130]\n is within a string... String str = request.getParameter("textfieldvalue"); I want to display the value of str to other pages..using this link below. window.open("page.jsp?param=<%=str%>") ....the problem is that the window is not opening due the str has \n. How to read \n in a string?[/QUOTE] I don't know if it …

Member Avatar for toughlittleone
0
215
Member Avatar for Mandarinire

You do know how to create methods, don't you? The answer is easy everything has been given to you and most of the suggestions here will repeat what the assignment says to do: [QUOTE]a. Add a close method to the auction class. This should iterate over the collection of lots …

Member Avatar for javaAddict
0
2K
Member Avatar for dannyfang

[QUOTE=batousai;1148317]try this one: 1) capture the value of the dropdown select box with javascript using the getElementById command. 2) then next step to do is simply pass the value captured to the servlet. thats all! its gonna work! I guarantee you![/QUOTE] First of all this thread is 5 years old. …

Member Avatar for peter_budo
-1
9K
Member Avatar for acid13burn24

[QUOTE=acid13burn24;1145982]ei guyz, i am new in java world, i knew some but i can't understand the some of them... can you help me to do the atm program,? can you share the codes?? thanks a lot..[/QUOTE] Create a class for Account. (name, pin, balance, ...) with methods. Create a class …

Member Avatar for stultuske
-2
105
Member Avatar for gaya88

Since the print just prints the month and total of the class and you already have those values in your class and you call it with parameters those values, shouldn't you be doing this: [CODE] void print() { System.out.println("Your bill for month "+month+" is "+total); } [/CODE] Inside the class?

Member Avatar for PopeJareth
0
166
Member Avatar for linx311

[QUOTE]3. Modifying data of selective item.[/QUOTE] For modifying I suggest that once you call the findItem method, to ask the user for new data from the keyboard and change the item found: [CODE] System.out.println("Item found:"); System.out.print(Inventory[i]); // ask for new data inventory[i].set...(); return; [/CODE] [QUOTE]4. Deleting existing items.[/QUOTE] After you …

Member Avatar for javaAddict
-1
239
Member Avatar for omeli

After reading the post, I realized, that everything has been given to you with plenty of explanation and you had to write only one method. The method signature has also been given as well what you must do, what classes to use, what those do and how to use them. …

Member Avatar for kvass
0
229
Member Avatar for devstarter

[QUOTE=devstarter;1145916][This is a multi-post; I thank you people for the attention] hi How could I show a database datetime field (like mm/dd/yyyy) on a JTextField? regards[/QUOTE] 2 ways: > Read it from the database using: ResultSet.getDate(), and store that value into a java.util.Date object. Then use java.text.SimpleDateFormat > Read it …

Member Avatar for javaAddict
0
110
Member Avatar for astronomical

I couldn't understand what your problem is so I tried to run it. It asked me to enter some numbers, but once I entered the first number, it exited without asking for more. It is because you call this: [ICODE]input = JOptionPane.showInputDialog(null,GET_NUMS,null,JOptionPane.QUESTION_MESSAGE);[/ICODE] only once outside the while loop. Now since …

Member Avatar for javaAddict
0
841
Member Avatar for Majestics

[QUOTE=Majestics;1141859]I want to design utorrent client for my semester project in java, can anyone tell me where should i start and what are the necessary steps for this, also if any useful website and information. Thank you.[/QUOTE] The link provided the necessary steps you needed to start. Since it is …

Member Avatar for Nick Evan
-4
124
Member Avatar for kvass

I just read [I]balmark[/I]'s code because all those comments got me curious. What the buck was that??? I mean seriously can this code be characterized simple or efficient or any useful at all. Why would anyone do this? I see two classes, one extends JButton and the other implements ActionListener. …

Member Avatar for javaAddict
0
177
Member Avatar for avinash_545

[QUOTE=avinash_545;1144559]hi everybody!!!!!!! can anyone tell me how do we test the data type of variables in java, like if a variable is a string, the system prints out that this variable is string or not. more especially how can we test this on primitive data type? waiting for your replies!!![/QUOTE] …

Member Avatar for javaAddict
0
269
Member Avatar for Tigerdude

[QUOTE=asma noreen;1144562]i need the program for word frequency by word length[/QUOTE] Start a new thread and don't expect someone to give you the code unless you show some effort. Also explain better you problem.

Member Avatar for javaAddict
0
607
Member Avatar for crazy lady

Didn't you start an identical thread? Double threading will not get you anywhere

Member Avatar for javaAddict
0
77
Member Avatar for crazy lady

[QUOTE=BestJewSinceJC;1144464]CODE TAGS. Use them. Read the rules.[/QUOTE] Just click the button that says "CODE" when you make a post. And when you submitted your post didn't see how it was posted? Did that seem readable to you?

Member Avatar for javaAddict
0
91
Member Avatar for j1979c

[QUOTE=xirkhan;1144431]give me the sample output that you want to be output[/QUOTE] It has been 2 years since the last post. You think that the OP was waiting for you? If you really want to help someone then why don't you try the most recent posts?

Member Avatar for javaAddict
0
288
Member Avatar for kvass

Don't worry about the down voting. It is a system recently implemented in order to improve the forum. But many people miss use it: You will find entire threads of people complaining about how their perfectly good posts got down voted for no reason whatsoever by persons unknown. I mean, …

Member Avatar for kvass
-1
199
Member Avatar for anuj_sharma

There are plenty of examles in this forum and at the java forum on how to connect to the database and execute queries. So submit the data you want, get them with request.getParameter() and save them to the database

Member Avatar for peter_budo
0
88
Member Avatar for polska03

Part of the exception was this: [QUOTE] at fileIOPKG.FileIO.getNextInt(FileIO.java:34) [/QUOTE] Now you know at which java file and line the error occured. waht are you calling there. Are you entering correct data form the keyboard?

Member Avatar for javaAddict
0
84
Member Avatar for countenance

[QUOTE=countenance;1143826]how to store the retrived data from database into th especified text field[/QUOTE] The answer is very simple and easy. It is one of the very first things you learn when someone starts with jsp. Which is why I believe that you rushed into writing JSPs before giving some time …

Member Avatar for javaAddict
0
66
Member Avatar for miles.85

I assume that the file D:\\A.txt has integers inside it. Can post part of the contents of that file. Also this is how it is declared with the public first: [CODE] public static void main(String[] args) { } [/CODE] But I am surprised that you said that it compiles.

Member Avatar for miles.85
0
284
Member Avatar for Mandana_bgh

Chaeck this site: [URL="http://www.w3schools.com/default.asp"]http://www.w3schools.com/default.asp[/URL] Find the attributes of the radio button at the html tutorials or the html references where all the tags and their attributes are listed. [CODE] boolean isCkecked = ....; <input type="radio" name="code1" value="1" <%= (isCkecked )?"checked":"" %> /> [/CODE] I am almost certain the "checked" is …

Member Avatar for Mandana_bgh
0
5K
Member Avatar for tapas.chand

Have you tried setting the autocommit to false. If you don't even if you had the connection, the rollback wouldn't work.

Member Avatar for tapas.chand
0
76
Member Avatar for logicmonster

I don't see any difficult stuff that would get you confused: [ICODE]System.out.println()[/ICODE] is used to print whatever you pass as argument and then changes line. The '+' symbol, when applied to String, concatenates: [CODE] [COLOR="Green"]var1 = 5[/COLOR]; [COLOR="Red"]var1 = 10[/COLOR]; "aaaa" + var1 -> aaaa5 "aaaa " + (var1 + …

Member Avatar for javaAddict
0
187
Member Avatar for polska03

The way I see it, first you need to create the file and fill it with data. Then try to read it. The tricky part would be to figure out the format of the file. For example if you want to represent a crewman's data you can do this: [QUOTE] …

Member Avatar for javaAddict
0
143
Member Avatar for pradeepkumarb

In order to tell you how to logout, you need to tell us how you login. When the user enters the username and logs in successfully, what do you do afterwords?

Member Avatar for javaAddict
0
63
Member Avatar for Accendo

If the data are inside a file then your problem is not with 2D arrays, but with reading a file. Anyway, in what format are the data inside the file? Like this for example? [U]File:[/U] [QUOTE] 10 20 .. 8 9 .. -5 . . [/QUOTE] Is your problem reading …

Member Avatar for javaAddict
0
141
Member Avatar for rena0514

Look how you have defined the draw method in your Circle class, and how you are calling it. About the "square1" error you have declared it correctly at the ShapesPanel class but you are using inside the private ButtonListener class. Maybe you should do this: [CODE] public class ShapesPanel extends …

Member Avatar for javaAddict
0
154
Member Avatar for Peppermaud
Member Avatar for lightninghockey
Member Avatar for javaAddict
0
5K
Member Avatar for vvrekha

You need to better explain your problem. You say that: "I am getting the data from Ms-sql for 3 combos". If you have read the data for those combo boxes just display them. Or are you reading the elements of the combo boxes from the database. When you select a …

Member Avatar for peter_budo
0
79
Member Avatar for Emmett_1981
Member Avatar for Emmett_1981
0
635
Member Avatar for javaAddict

Hi All I have a problem. I have been having some problems with my PC so I called technical support and they suggested that I should re install the drivers. I entered the CD with the Vista Drivers, followed the instructions after a while a black screen appears with this: …

Member Avatar for javaAddict
0
367
Member Avatar for Alex_

I am sorry for posting to this thread since I don't have anything new to add but I can't help to notice that you both have been down voted. Congratulations. Yet another post where someone, [B]anonymous[/B], decided for no reason and explanation, that an interesting question and a good answer …

Member Avatar for jwenting
0
198
Member Avatar for shredded

Hi [I]ordi[/I]. You are new here so you must learn that you shouldn't give the code for others people assignments. This is not that kind of forum. When someone's post their assignment and nothing more don't give the complete solution. It violates the rules.

Member Avatar for javaAddict
0
777
Member Avatar for Stefankarlsson

What problems are you having? Your question is very vague. You just posted some unfinished code without any further explanation. Also what you did with the Car class is not the right way to do things: [CODE] public class Car { String make = null; String model = null; String …

Member Avatar for javaAddict
0
258
Member Avatar for karamjeet2004
Member Avatar for ziaul1234

Looking at the stack trace, because it is very difficult for you to just read the error messages and you need someone else to do this for you, I saw this: [QUOTE] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at frame.Admin.jButton8ActionPerformed([B][COLOR="Green"]Admin.java[/COLOR][/B]:[B][COLOR="Red"]360[/COLOR][/B]) [/QUOTE] You have a NullPointerException at the [B][COLOR="Green"]Admin.java[/COLOR][/B] file at [B][COLOR="Red"]line …

Member Avatar for javaAddict
0
3K
Member Avatar for Mueni

Check the forum for the usage of the class Scanner. It is used for reading from the keyboard. Operator: '%' Assuming: A = b*c + d Then: A%b = d A%c = d Small example: [CODE] int a1 = 10; int a2 = 9; int r1 = a1%2; int r2 …

Member Avatar for javaAddict
-2
210
Member Avatar for Fulladder

[CODE] public class Human { private String name = null; private int age = 0; // .... // constructor // these arguments are not the same as the ones declared above public Human(String name, int age, String colour, String temperament) { // use the set methods to set the values …

Member Avatar for BestJewSinceJC
0
140
Member Avatar for kgkamaraj

Well as you have noticed the command given, brakes the input into smaller pieces depending on the argument: [CODE] StringTokenizer st = new StringTokenizer("I born on 21.02.1995. So, now my age is 15.", "."); [/CODE] So all you have to do is figure out what to use in order to …

Member Avatar for PatrickSharp
-1
150
Member Avatar for tactfulsaint
Member Avatar for emihamburg

Are the 2 panels declared in the same class. I mean are all your components visible in the same class. If yes, then: Check the API for JList and see what type of listeners does it take. There should be a method add..listener... Check if there is a method in …

Member Avatar for javaAddict
0
98
Member Avatar for sujithy15
Re: ide

[QUOTE=masijade;1126511]Okay? I have no idea why anyone would want to "vote down" that post, but ...... To each his/her own, I guess. [i]What[/i] about it was disagreed with [i]would[/i] interest me though.[/QUOTE] Another victim of the anonymous down voting, raises the issues that we have so often discussed regarding that …

Member Avatar for sujithy15
0
186
Member Avatar for chie12024

The letCarPass will do what is described. In the class you will have private attributes: cash, cars, violators. These will be returned by the respective get methods. Whenever the letCarPass method is called depending on the arguments and the description provided you will increase accordingly the above fields: cash, cars, …

Member Avatar for javaAddict
0
95

The End.