32,204 Topics
| |
I have been trying to learn java for a while but i cannot find out where to start can someone please help me?? I am Trying to learn as fast as possible . I have hosted a world of warcraft private server... Learned some div, css and html and i … | |
i am new to swings and i don't properly know where and how to use drawString in swings !! please help!! import java.awt.Graphics; import java.awt.*; import java.awt.Graphics2D; public class Main extends javax.swing.JFrame implements Runnable { String m1="hello"; Thread t =null; boolean flag; /** Creates new form NewJFrame */ public Main() … | |
Hello, I have a question about array lists, specifically how to pass array lists to a method. Then once in the method how to do simple algorithms. My example is I have three array lists, two of which have static double numbers and the third who's numbers are the end … | |
I realize that Java doesn't literally allow you to pass functions as arguments. And I've seen threads that address this topic with regular members, but I can't seem to adapt it for static methods. I have two classes that act kind of like two different "datasources" (A and B). They … | |
Okay so I posted my [URL="http://www.daniweb.com/forums/post936498.html#post936498"]first large project[/URL]a few weeks ago (2 or 3 i think) and now I finished another one! It is smaller then the 1st (about half the size) but still pretty cool I think. Anyway. It is called uCount and it is something I put together … | |
I have just completed my java code for the game engine maze I have been working on. We are told to download MARS and from java code it in assembly. I have never learned assembly. So I am completely lost. I so far downloaded MARS and uploaded my java code. … | |
Before I say anything else, I do realize that there are numerous threads on this topic, but I haven't been able to fix my problem. Okay. Well, here's my problem. I'm writing a map editor for the game that I'm working on, and the map is oftentimes much larger than … | |
[CODE=JAVA] import javax.swing.*; public class TimeDeposit{ public static void main(String[] args){ String choice1, choice2,monthlySales,income; int value1, value2; // to display value of a variable DecimalFormat num=new DecimalFormat(",###.00"); JOptionPane.showMessageDialog(null,"Monthly Sales In $","Bank", JOptionPane.INFORMATION_MESSAGE); JOptionPane.showMessageDialog(null,"the Interest is 0.025"num.format(monthlySales)+"income is"+num.format(income),"Bank", JOptionPane.INFORMATION_MESSAGE); choice1=JOptionPane.showInputDialog("The time less than: "); value1=Integer.parseInt(choice1); choice2=JOptionPane.showInputDialog("The deposit is greater than: "); … | |
what do i require to develop a dynamic website that will be capable of supporting short message service (sms) from different network provider and give them a chance of registering using their cellphone | |
I can't figure how to get this going, for every object I create I want to add that to the existing array. I read about arraycopy but I don't know how to increase the existing size of the array and always end up with array out of index error... [code=java]A … | |
Hello. I am an international student trying to solve my assignment which requires to implement Circular Linked List. I asked my lecturer to check my work and she said that I solved it but actually still using the normal Linked List (Linear). She hinted me that I need to modify … | |
how to generate number and characters together randomly. I know how to generate numbers randomly, but not getting anywhere with random character generation. Please help.. Thanks | |
Actually what i want to do is that on a click of a button , the selected row of the jTable increments to next row so that i can fetch that row to play the next song...how can i do that??? | |
Hi, Is it possible to embed a java applet into C#? Like WITHOUT downloading it, as if the applet is included as a resource or something. I made the applet so I do have the source ofcourse, if that makes it any easier. Thanks! Also, Is it possible that I … | |
So this is going to sound like other posts but I have been racking my brain to figure this out. This code is a mod of one that my instructor posted, he said it was fine to just change the names of variables and submit it. When I did so … | |
I'm trying to run a thread until a mouse event occurs, which will trigger an interrupt to the thread. The problem is that I can't get the thread to stop running in an asynchronous way (i.e. to listen is a mouse event occurred). Instead, what happens is that the thread … | |
I have the code at the bottom of this post: Running [icode]abc x = new abc()[/icode] can often take a long time (minutes or longer) and is only ever necessary if flag is true. If I leave the code as it is below, I get a "x cannot be resolved … | |
Hey guys. I am new to Java programming and I am having a lot of difficulty figuring out how to get the proper functionality out of my first, last, next, and previous buttons. First, I was wondering if my button setup is correct: // helper method that creates panel for … | |
[code] package mypackage; import java.security.SecureRandom; import java.util.Random; public class SecureRandomTest { /** * @param args */ public static void main(String[] args) { SecureRandom sr1 = new SecureRandom(); System.out.println("1. SecureRandom object 1. nextInt() result :" + sr1.nextInt()); System.out.println("1. SecureRandom object 2. nextInt() result :" + sr1.nextInt()); System.out.println("1. SecureRandom object 3. nextInt() … | |
pls i need help!I am writing a code to turn on and turn off a light bulb between a client side and a server side using sockets in java.The thing communicates but i am having problem puttin it on gui radio buttons .I called the method to sendMesage from the … | |
Dear all, I'm a newbie learning Java. Could you please help me on how to find the length of the longest group of duplicates in an array using Java. Let's say we have an array of integers as follows {9 7 7 7 7 3 2 1 1 5 5 … | |
I have woking on a Java desktop application which connects to the ISPs webserver database (remote access is allowed) and it works fine on my computer. I'm trying to desploy my application as a webstart application. But when I try to run the JAR file using the JNPL the database … | |
Im getting an: ERROR: findSuppliersCandy(): Column not found error in my program. i have two related tables. One supplier table and one candy table for different types of candy. the method below is trying to retrieve all the candy entries related to a specific supplier by passing a supplier id … | |
Hi, I want to develop a desktop application in which I want to render different views on button click. What should I use to achieve this? I thought of going for Swing but I don't have much idea about it. Can we show different views in Swing on button click? | |
Recently I've encountered an error which I'm not sure how it's supposed to be done given my very basic knowledge of Solaris. After building and running the project, this are the message which appear on my output... init: deps-jar: Compiling 1 source file to C:\Documents and Settings\Administrator\SimpleRead\build\classes compile: run: Caught … | |
Hello, I'm learning Java ME, remember that i'm already a Java developer, but i was trying to do a simple contact book application, then when it was finished i run it in the WTK emulator, but when i try to add some record it only shows me the message that … | |
I can connect from the services window but whenever I try to set the code myself on my app it tells me it cannot connect to the database. Here's my code: [CODE=java]import java.sql.*; public class LogBook { public static void main (String[] args) { connectToDB(); } // Connect to the … | |
| I am not writing this to spam people. I am trying program that will send the message "What's Up" to all the people on my friends list that are online in AIM. The main problem is how do I get Java to read the friend list, open up the message … |
Hi, I've been thinking of ways of creating an application that involves working with data, what would be the best way to accomplish this? With the JavaDB, MySQL or plain text files? The project is fairly simple, the idea at least. It's a set of records for students, each student … | |
I am developing an app and was wondering if any software might exist to help. Specifically, I want a simple app that will allow me to take a video or pics of a neighborhood. If possible, I would like software to convert the neighborhood to a 3d cartoon-ish (not absolutely … |
The End.