36,051 Topics
![]() | |
Hello, I was wondering why do we need constructors with arguments? Thank you | |
Hi guys this is for an assignment, its the last part and its not working:sad: heres the instructions i've been given: All SpaceObjects float through "Space", so we will need to also define a Space class. That is the goal of this task. Similarly to task 1, each attribute, constructor … | |
I have java database application. I have login form using JDialogForm and I have Main program. The problem is I want to call JDialogForm when I run my main program and if the DialogForm is closed, I want my main program Appear. I have try it, but failed..... can you … | |
Hello, i have to design and implement an application that helps a museum analyze the flow of visitors for an exhibition that lasts for 3 weeks.(The museum is opened 7 days a week for 4 hours)...well getting to the point. I need to store this information in a 3d array … | |
using javascript in c# only for validations..i want to learn javascript in c# ..is there any website or material ...i dont want to read it fully..mainly used function in c# is enough..plz guide me | |
hi all ..i need help plz ...where can i find a java code(not Javascript) for an image slide show ...made in GUI ...if someone knows ..plz help ..and thnx in advance | |
| |
Okay so I have an ellipse and I could like to have a "racecar" (actually just a 10x10 rectangle) follow the ellipse around the edge. The point that is always touching the ellipse is the upper left hand corner of the "racecar." I'm not even sure where to begin writing … | |
Hi. I have a predicament... I'm trying to make a JComponent that looks like this: _____________________ | | |Option Name [Text Field] | |____________________| It's for a Option screen that I asked about earlier (I got that part working fine). But now, I need a component that has the option … | |
Hi, First of all I apologize if its the wrong forum, hope its not =) I am trying to create a java prog for my cellphone to calculate my received/dialed call timers. The phone stores 40 entries of received/dialed calls, and my plan is unlimited after 7 + weekends, so … | |
Well, i have a problem with the snake in my problem... if it runs into the body it dies. But, if I press, for example, up when i am going down, it loses. How do i keep my self from doing that? Here is the code for the movement: [code]public … | |
im having a problem getting an abstract method to work, heres the code [CODE] abstract ImageIcon getPicture(); { return picture; } [/CODE] When i compile the code i get the following error: Appliance.java:30: return outside method return picture; Can anyone help me fix this? | |
I am having trouble creating the snake, let alone making the animation. I need someone to assist me in creating such things, as well as helping me complete the program. Thanks [code]import javax.swing.*; import java.awt.*; import java.awt.event.*; /** * @(#)SnakeGame.java * * * @author * @version 1.00 2009/4/30 */ public … | |
Hi, I'm trying to make an Options screen for the game that I'm writing. I know how I want it to look, but I don't know how to add Tabs, or move the buttons that control the options around... Below is a link to a picture of what i want … | |
Hello! I'm searching and searching and can't find a solution... In my project I've got a folder 'Images' where from my application loads icons etc. Running project from IDE (NetBeans) it's of course working fine, but I want to create stand-alone application, so I create .jar file. And here's a … | |
I am working on this lotto project which generates 6 random numbers in which are put into an array. How do i put it in an array where the numbers don't repeat? | |
Hey, for our project purpose we had to collborate java with vb using JNI.because in our project there is a idle checking procedure for the client from server which cannot be done with java.... can anyone help us with java code or JNI code.... | |
Hello, I have a program called Date. While this program compiles and runs, I have noticed something weird. I have an output line that displays my values twice. Sample Run: The word date output is: February 12 2009 [B]The numeric output of the date is: 2/12/2009 The next incremented date … | |
I have to write a program the accepts a fully parenthesized like "((3*4)+(2-(4/2)))", or (3+5). It builds a tree for the expression, without the parentheses. So the tree for the (3+5) would be - "+" is the root, and the 3 is the left node and the 5 is the … | |
Ok, i have read alot about this bugs now, and nothing seems to help. Hope someone have a step by step solution for me, or atleast can give me some more insight hehe ;) Here is a few intel on my work. Im working in netbeans on my labtop, uploading … | |
I have two methods. One method was to set location of 2 points x and y. Another method was to copy that location. I used arrays. Well the program compiles but it doesn't display my values properly. Error message says: [D@af9e22. Does anyone know what this is? Thank you // … | |
Television(boolean power, int channel, int volume); Keep getting error "missing method body or declare abstract" Can't understand why? Help please :) If you need to see all code ask TOM | |
...and it's due by midnight tonight. But I've mad a huge effort. Can I get any help? I'm trying to stay alive in this class. :'( File attached. | |
Hi I am new to java and need help . Whats the C++ map equivalent in Java. In C++ i can use map for three purposes like i) Sorting while insertion into it ( efficient ) ii) Key ,value iii and for storing unique item. I came to know there … | |
[CODE] public void deleteDvd(String title) { String DvdCompare; Dvd dvdObj; Collections.sort(dvds); for(int i = 0;i< dvds.size();i++) { DvdCompare = dvds.get(i).getdvdTitle(); dvdObj = dvds.get(i); if(title.equals(DvdCompare)) { System.out.println("Dvd is in system"); int index =Collections.binarySearch(dvds,DvdCompare); dvds.remove(index); //delete method in arrayList } else if (!title.equals(DvdCompare)) { System.out.println("Not found Dvd Object"); } } }[/CODE] I'm … | |
hello I am very new to netbeans IDE 6.5. Now I connect My SQL database in netbeans after that I want to retrieve data from webpage and store into it. Not in a traditional way that old jdbc-odbc model..so please help me......... | |
Please how to get a specified data from a file?? in java and what is the substitution of the seek function in java??? I need information Thanks | |
Hello, I was trying to get hold of arrays and read lots of stuff. So when i started coding, i got an error message saying incompatible types. I checked with general compliance and it should be ok. Maybe netbeans causing it? Anyway, any kind of help will be appreciated [ICODE] … | |
import java.io.*; public class AlbumFile extends Album { public static void main(String[] args) { String fileName = FileChooser.pickAFile(); String line = null; // This array holds the album's pictures Picture picArray[] = new Picture[4]; // This array holds the album pictures' captions (descriptions) String captionArray[] = new String[4]; // Create … | |
It keeps giving me this exception when it [I]seems[/I] like I am adding a choice to my choices vector, and I don't know why. Here is that snippet of code. If you need more I can provide it. Thanks ahead of time. [CODE=java]import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Vector; … | |
I am rewriting a Python mechanize script to parse a site, after the entire site was altered... I am able to get part way into the pages I need to access, but have run into a bit of a problem. In the HTML below, the first segment has 2 buttons … | |
Hi. I am learing JSP and testing mail. but I don't know why error generate. Please help me. Source code. [code] package tags; import javax.mail.*; import javax.mail.internet.*; import java.util.*; public class HelloMail { public static void main(String args[])throws MessagingException { String name ="jsp learning"; String from = "kim.ilikeenglish.gc@gmail.com"; String to … | |
Hello, I feel embarrassed to ask these types of questions but i can't get answers to them in my text book. So here you go: I have an assignment of copying the constructor writing clone() method and add() method. While i understand the idea of creating of clone and add … | |
hi, Dear Friends i am developing LAN chatting software in java. i got a confusing problem, i.e when a user do chat while opening chat_Window, and at that same time if he open another chat window, then he types the message in old already opened window the messages shows in … | |
can anyone please tell me a way to calculate any given factorial number using trees. | |
hi everyone , i am trying to access image files in java and then want to modify those bits present in the image . is there any standard package or utility which would help me to do that ...? i would be glad if you could enlighten me with other … | |
Can anyone suggest any resources that could help me learn Java GUI creation? I have been working on a lab assignment where we need to copy the Google Kitchen Sink example and my biggest problem has been layout issues, whether I code by hand or use the IDE although I … | |
[code=java] public static void setValues(PreparedStatement statement, Object... values) throws SQLException { for(int i = 0; i < values.length; i++) { if(values[i] instanceof Integer) { int value = (Integer) values[i]; statement.setInt(i, value); } else if(values[i] instanceof String) { String value = (String) values[i]; statement.setString(i, value); } } } public static ResultSet … | |
hi, i am useing the netbeans for the first time n i am trying to connect to a MS Access DB through the wizard but i am not able to. I entered for a DSNless connection: Name:JDBC-ODBC Bridge. Driver: sun.jdbc.odbc.JdbcOdbcDriver Database URL: jdbc:odbc: Driver={Microsoft Access Driver (.*mdb)};dbq=C:\Users\Vamsi\Documents\PIN.mdb; the issue its … | |
How to do image Zoom in Zoom out in J2ME.. Help with Source Code.. | |
hi,, attached a java code for a simple dictionary based on AVL tree principle,, the 3 files are: Node.java: the base class AVL.java:the function and Menu:the menu class of the programe regards | |
Hello, I am working on the problem of creating an abstract class Shape also with Package shape and then creating a subclasses Circle, Square and etc. I belive, i don't have a complete understanding of an abstract. Anyways i keep getting an error: " Shape.Circle is not abstract and does … | |
[CODE]private void menuButtonActionPerformed(java.awt.event.ActionEvent evt) { panel1.setVisible(false); startMenu.setVisible(true); img = new ImageIcon("DeathRun.png"); Graphics g = startMenu.getGraphics(); img.paintIcon(null, g, 0, 0); } [/CODE] The code is very simple for this method but here is my problem. I have a menu that I want to display an image behind. When I hit the … | |
I have a java applet on my website and i need it to connect to my mysql database. When I was trying to figure out how to do this i saw several examples that used jdbc. I'm confused can I use this to connect to my mysql data base at … | |
I have developed a messenger in JFrame now i want to implement voice communication to it? Plz Help me out! | |
Hi all, I have a java program which runs repeatedly by calling to main functions in a loop based on a condition ..But after running for some time(say 30 minutes),it shows the follwing error and it terminate the program execution.But as per my requirement i want to run this program … | |
Hi Guys, I am using JMF and a guide ( [url]http://www.mutong.com/fischer/java/usbcam/[/url] ). The problem I am facing is that I can't figure out how to output the data live as I take it in. Basically, I want to use my webcam as a mirror. Thanks PO | |
OK, I'm obviously going bonkers here, but has something happened to the java code tags? Why doesn't this work in preview mode? [CODE=java] i++; [/CODE] | |
hi. I am trying to simulate the PGP algorithm. I am trying to encrypt the symmetric key using a public key. My code: [CODE] . . KeyGenerator kgen = KeyGenerator.getInstance("DESede"); kgen.init(168);//**IMP Key symmetric_key = kgen.generateKey(); Cipher c = Cipher.getInstance("DESede"); c.init(Cipher.ENCRYPT_MODE, [B]symmetric_key[/B]); byte[] encrypted_packing = c.doFinal(packing); //Is the following right thing … |
The End.