32,199 Topics

Member Avatar for
Member Avatar for sirlink99

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 …

Member Avatar for Majestics
0
109
Member Avatar for n3red

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 …

Member Avatar for bibiki
0
119
Member Avatar for Hakoo

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? …

0
100
Member Avatar for qweewq22

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 . …

Member Avatar for JamesCherrill
0
162
Member Avatar for Poopster01

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 …

Member Avatar for javaAddict
0
318
Member Avatar for packetpirate

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 …

Member Avatar for packetpirate
0
244
Member Avatar for chudapati09

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 …

Member Avatar for kekkaishi
0
119
Member Avatar for jackmaverick1

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), …

Member Avatar for jackmaverick1
0
218
Member Avatar for Iamthecheese

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 …

Member Avatar for Ezzaral
0
2K
Member Avatar for bhallarahul

Is it possible to write java program for controller or programmable interrupt controller?

Member Avatar for bhallarahul
0
74
Member Avatar for NPDA

how can i solve this error.?? incompatible types found : java.lang.String required: int num=userIn.readLine(); :)

Member Avatar for JamesCherrill
0
87
Member Avatar for oxoxalexoxox561

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 :'(. …

Member Avatar for peter_budo
0
141
Member Avatar for Devildawgg

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 …

Member Avatar for Tarkenfire
0
370
Member Avatar for dancks

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 …

Member Avatar for dancks
0
156
Member Avatar for Fumomo

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 …

Member Avatar for JamesCherrill
0
730
Member Avatar for lacoffo

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 …

Member Avatar for lacoffo
0
258
Member Avatar for jeffrey o

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 …

Member Avatar for javaAddict
0
215
Member Avatar for raephel

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 …

0
55
Member Avatar for scarletfire

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 …

Member Avatar for JamesCherrill
0
111
Member Avatar for Gabit

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); } …

Member Avatar for bibiki
0
203
Member Avatar for anaana

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 …

Member Avatar for JamesCherrill
0
195
Member Avatar for caierhui

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 …

Member Avatar for caierhui
0
160
Member Avatar for mani_1991

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..???

Member Avatar for mKorbel
0
58
Member Avatar for patrickgormally

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. …

Member Avatar for patrickgormally
0
130
Member Avatar for shyla

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 …

Member Avatar for JamesCherrill
0
293
Member Avatar for jeffmummey@sbcg

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 …

Member Avatar for sirlink99
0
165
Member Avatar for stephen lynch

hi im doing a project in java and i would to know how do u create a restuarant bill calculator in java

Member Avatar for javaAddict
0
492
Member Avatar for jeffrey o

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 …

Member Avatar for parry_kulk
0
527
Member Avatar for Maelst0rm

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 …

Member Avatar for JamesCherrill
0
760
Member Avatar for Kprosser1029

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 …

Member Avatar for thekashyap
0
259

The End.