32,204 Topics
| |
i want to validate the String entered wether it is a valid standard equation of [COLOR="Green"]conics[/COLOR] the standard equation is: ax^2+by^2+2hxy+2gx+2fy+c=0 some variables can be missed in input string but it should be of "degree 2" equation | |
what im having trouble with is making an applet which has animates like the matrix code.. lines come down at random positions etc.. my lecturer said that it only takes 20 lines of code and is very simple. he gave us this info as a hint: [CODE]Use the random class! … | |
Hi everybody, i just have a task from my teacher..and the task is to make the chatting application with java (GUI = Swing) that implement the multithreading and multicast socket. can you give me the resource or tutorial??!! help me please.... :) | |
sorry i can't found tread about voice recoder!! my question is how to recording voice with microphone and play recording with java swing/netbean and output from voice is save to hardisk!! thanks all | |
I'm making a game server which involves three servers; a CommonServer, which connects the LoginServer and the Gameserver. Anyways, I've got another source that's similar that I'm looking at but I must have done something wrong. I've been looking at it over and over again and the other source works, … | |
Good Day, I have an Abstract Class, Student, which has two child classes, FulltimeStudent and PartTimeStudent. I use the class, Test, to test how many credithours each student has and how much financial aid each student is getting. My output requests that firstly, i enter wheter a student is Full-time, … | |
Hi, I'm kind of new to the world of streams in Java, and I was wondering - I have this Server/Client program, and I need to read Objects and Text streams. I tried making an ObjectInputStream, and a PrintWriter out of the Socket's InputStream, but when I tried to read … | |
the exact diff between c++ and java technically........need to submit a assignment | |
I am getting the error in the title of this post when I try to run my ColorFactory class. Can someone tell me where Im going wrong? Heres my code: [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class ColorFactory extends JFrame { //Fields of the class private JLabel messageLabel; … | |
Could any one you help me in resolving this issue. I want to write the content to a file line by line. I have done the following in my java class. I have to append the some content into an xml file. For this I am reading an xml file … | |
im having problem setting values into a String array.. it must be with a setter method (yes this is homework). i have created a Person class which u can set name, age, gender and then i created a Teacher class which extends person and further allows you to set ( … | |
Hi all, I'm doing the project, in which i'll get a string as response from the server. That string contains the xml content. I need to parse it and extract the required value of the xml tags... i have no idea about this, Kindly any one has a code to … | |
hello again everyone to pick up where i left off, i took the advice of a member and split my poker game up into different classes which i will post below 1)i need help with two errors in the poker class which i have commented out as compiler error messages … | |
Hi I am using jmf to build some music player and im want to add some equalizer that will "jump" up and down according to the music, how can I do it? | |
hello friends , i am searching job and put 5 projects and i am finding difficulty in explaning the current project so please can anybody tells me how to explain the project ,i mean how to start explaining and what should i explain .please its really urgent i am finding … | |
I am new to programming and have a question regarding a homework assignment. First off this is for an Inventory Program and it is part 2. The assignment is as follows: Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The … | |
I'm developing a Java application where I have to implement Shortest path algorithm (dijkstra's). I've stored the details of nodes in database. But my problem is that the number of nodes is very large (1000+) and taking all the nodes into consideration will increase the time and space consumption of … | |
Question 1) Define a class for Rectangle objects defined by two points, the top-left and bottom right corners of the rectangle. Include a constructor to copy a rectangle, a method to return a rectangle object that encloses the current object and the rectangle passed as an argument and the method … | |
I have a large file to read to get the data out of the columns. File size varies, but is usually around 1000 to 3000 lines. What I need to do is pull the data(numbers) from column 3 ONLY if the number in column 4 of that same line is … | |
Note, some of the code could be hard to understand as a bit is in Swedish. Hi! I am trying to learn some sql/java. I created some tables in an sql-database, and a java-program to access and modify the tables. I am not that experienced in programming so I might … | |
log.info("Able to establish mail session"); props.setProperty("resource.loader", "class"); props.setProperty("class.resource.loader.class", "org.apache." + [CODE]"velocity.runtime.resource.loader.ClasspathResourceLoader"); props.setProperty("file.resource.loader.path", "/"); Velocity.init(props); Template template = Velocity.getTemplate("MarketingAlert.html"); log.info("Able to find Template."); VelocityContext vContext = new VelocityContext(); vContext.put("url", url); vContext.put("userId", createdBy.toUpperCase()); vContext.put("appName", applicationName); vContext.put("custName", customerName); StringWriter writer = new StringWriter(); template.merge(vContext, writer);[/CODE] IM working on enhancement...im getting the below exception: … | |
So, I have plans for a chat applet. I have only flowcharts and drawings of what I plan to do. Right now I'm creating my own HTTP server to deliver the applet, which is working nicely. Now I'm trying to find some stuff I want to add to the applet. … | |
Hi All! First thanks for viewing my thread. I have spent a half day and change trying to find a solution to this specific problem. Basically I am trying to figure out how to change the variable name while in a loop. The last loop is where my problem is … | |
i got problem to do video streaming code through website..can anyone help me.. | |
Hi everybody, while i build my ant scripts in eclipse, and at the stage of [INDENT][/INDENT][B][exec] Invoking RMIC. [/B]i get an error complaining of some classes not being present. but where as they do exist in my project. Does anybody have any clue of why this happens Thanks in advance. | |
Hello, I wrote an add method but for some reason it does not add more than 3 values. Could anyone tell me why? here is my method: [ICODE] public void addValue(int value) { IntNode cur = head; IntNode prev = cur; IntNode t = new IntNode(value); if (value <= cur.data){ … | |
Hi, I'm using a JTextArea in a JApplet, and having difficulty trying to align the JTextArea on the x, y axis... I've tries setBounds, setAlignmentX & setLocation... Neither seem to work. Plz help! This is what I have: [ICODE] public class Testing () { JTextArea TxtArea; Container Panel; LayoutManager Layout; … | |
Suns Java style rules specify that accessors should follow the getX/setX pattern, and most Java API mathods follow this... except for some very common exceptions such as: String length() enum name() [NB new to 1.5, not a legacy!] ArrayList size() etc It seems that there is another pattern operating here: … |
The End.