32,199 Topics
| |
I have a general idea on how to start. I would need a gui with a screen to display the text and a JTextField to write the text and a send button. I would also need to import the java.new package to connect between the computers, but other then that … | |
Hi, I am writing a simple script, basicly i have: [CODE] String s = "A quick fox jumps over a lazy dog"; [/CODE] Now i want to print it like this: (like 3 words per line) :: A quick fox jumps over a lazy dog Know i know i can … | |
Hello Friends, I have one problem that, I am passing query string from Mobile to Server. Now problem is Spaces and some symbols are not allowed in URL. So,I encoded somehow before sending it. Now the problem, how to decode(I know to decode by using URLDecoder.decode(Request.getQueryString)) and retrieve the values? … | |
Hello friends . I have some problems . I want to Implement a stack and use 2 jButoons for push and pop and a jlist for showing the pushed elements . I write this code but it dont give me good result ...! please help me compelet this program . … | |
This is my first time writing an array of objects and I’m having an issue putting it all together. I have written two classes and the third program that is supposed to test the classes. ***PROBLEM*** My primary issue at the moment is that my program to test the classes … | |
I'm not sure if it's the way I'm sorting this ArrayList or the way I'm constructing new Term objects. Can anyone tell me what's wrong? My program is too long, so I'll narrow it down to the parts that are giving me trouble: The declaring of the terms and new … | |
| I'm creating a calculator, and I'm required to have a feature of key press. Ex: I have a GUI with each numerical value (0 - 9) has a button. Now when the user press 7 on the keyboard, I need buttonSevenActionPerformed to be invoked. The signature of buttonSevenActionPerformed is: private … |
Hi! I'm looking to be able to add a user created extension to a program I'm making. The extension should be able to execute on it's on accord, then pass control back to the program when it's done. So, Say I click a button (it's got a GUI on it), … | |
Okay, so I have a rather easy problem that I can't seem to figure out. I'm getting cannot find symbol errors for T item=(T)input.next(); The program is a test file for a Binary Tree program. I was told the input 'item' has to be in T type. Obviously they have … | |
Is it possible to write java program for controller or programmable interrupt controller? | |
how can i solve this error.?? incompatible types found : java.lang.String required: int num=userIn.readLine(); :) | |
Hey, my name is alexandra and i'm actually in a computer programming class right now and my final is coming up. unfortunately, i have barely slid by all year long and haven't really learned much. Our final is coming up and i am in desperate need to pass it :'(. … | |
Good morning to all:zzz: I am a beginner programmer in Java, and I am having an issue I don't quite understand for a program I am working on. I am hoping that someone here with some more experience than myself could take a look at my code and see what … | |
I'm tired, so the answer to this might be obvious but I cannot figure out what is going on. I uploaded the code plus input file. When I ran the code here's what I got: [code] What do you want to do? -1 -- quit 1 -- add object 2 … | |
Hey all, I've been trying to solve this issue I have now sometime but haven't had much luck with it. I want to be able to update a label in a JPanel from another JPanel EG panel1 has an actionListener that updates a JLabel in panel2. I've been searching around … | |
Hey all:) I'm learning Java and I'm having a little trouble on a polymorphic write-to-file function. Let me quickly explain my project: I have an abstract class Mammal, with non-abstract children Horse, Cow etc. I have a Main program that creates a couple Horses and Cows, and store these in … | |
What i'm trying to do here is just place the values in my text file into variables the txt file contains: 1111 50 2222 60 3333 70 4444 80 5555 90 i get the error :[COLOR="red"]Exception in thread "main" java.lang.NullPointerException at udptry2.m.readfiless(m.java:41) at udptry2.m.main(m.java:68)[/COLOR] [CODE] package udptry2; import java.io.BufferedReader; import … | |
Hi, I have a project deployed on Linux machine on JBoss server and I'm executing that projet from Windows through Internet Explorer. Further more, I'm using this jsp code: <form name="upld" method="post" action="UpldFile" enctype="multipart/form-data" > <input type="file" name="file"> <input type="submit" value="Submit"> </form> to have a file chooser dialog which I … | |
I am suppose to write a [I]ComparePlayers[/I] class that implements the [I]Comparator<Player>[/I] interface. It should compare players by number of games played (and then by alphabetical order of surname if the number of games played is the same). This is what I wrote , it is the general idea i … | |
I need to create java class which has 2 methods: [CODE] public class IPTPLogin extends IPTPCommand { /** The email address */ private String login; /** The password of email */ private String passcode; /** Creates a new instance of IPTPLogin */ public IPTPLogin(String log, pass) { setLogin(log, pass); } … | |
i have this code for palindrome [CODE] import java.util.*; public class CheckPalindrome{ public static void main(String[]args){ Scanner input=new Scanner(System.in); System.out.print("Enter String: "); String st=input.next(); String str[]=st.split(""); String reversedSt=""; for(int i=str.length-1;i>=0;i--){ reversedSt+=str[i]; } if(st.equalsIgnoreCase(reversedSt)){ System.out.println("String is palindrome"); } else{ System.out.println("String is not palindrome"); } } }[/CODE] i need the same programme … | |
Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: No Persistence provider for EntityManager named asset_monitoring_systemPU: Provider named oracle.toplink.essentials.PersistenceProvider threw unexpected exception at create EntityManagerFactory: oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException Local Exception Stack: Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: sun.misc.Launcher$AppClassLoader@11b86e7 … | |
hii, i was intresting in doing project on sending messages to bluetooth devices with in my wifi range.... is it possible to send messages to the avialable device..??? | |
Hi everyone! I'm creating a class for a mortgage payment. I pretty much have most of the code finished but when I compile the code I receive multiple errors saying "Cannot find symbol". This error occurs about 9 times and I am also having some problems with the compareTo method. … | |
i need to create a class named MyShape(which i did ), and make it a super class. its instance variables should be the x1 x2 y1 y2 values shared by all subclasses. the class needs to include 1. a no argument constructor 2. constructor that takes the argument necessary to … | |
I need a strong response to my question. I can write and compile a java application. The computer won't run the applications when the proper java command is used in command prompt. I did load the Java run time environment. The applet will load using an html tag. Whats happening … | |
hi im doing a project in java and i would to know how do u create a restuarant bill calculator in java | |
This is the server code for the udp server/client program . There are no errors except when you run the program the ff error occurs: [COLOR="Red"]Exception in thread "main" java.lang.NullPointerException at udptry2.UDPServerbackup2.main(UDPServerbackup2.java:44) Java Result: 1[/COLOR] the client side works how it should just this part of the program [CODE] package … | |
Hi guys, Im trying to do battleships game. But I dont know, what is the best way to create interactive battlefield? I created JFrame and put inside two JPanels (my and opponents field).I wanted to put inside JButtons (JFrame had GridLayout), but I was told this isnt right solution. It … | |
I need help creating a Binary file that displays in Hex and readable text! I have already completed the gui part I need help converting to Binary. Here is what is required: 16 Byte values displayed as 2 digit hex values separated by 2 spaces, then a separator | and … |
The End.