32,204 Topics

Member Avatar for
Member Avatar for sirlink99

I am tying to use Gridbag layout, but I cannot seem to get it working. [URL="http://img703.imageshack.us/img703/1461/photo00002y.jpg"]here[/URL] is the plan. and here is the code: [CODE] import java.awt.event.*; import java.awt.*; import javax.swing.*; import java.net.*; import java.nio.*; public class Chatroom implements ActionListener { public Chatroom (){ JFrame frame = new JFrame ("Warrior …

Member Avatar for mKorbel
0
166
Member Avatar for Inevitable x7

Hey guys, i'm new to the Java and have stumbled on a few things. When a button is clicked on my program an string is printed to a JList model. Ex. Snickers Bar ............$1.00 Now what i am trying to do is keep a running total of all these items …

Member Avatar for Ezzaral
0
119
Member Avatar for cabosun

So im doing this swing java gui project where the admin can login and search, modify and add users to the database mysql. Im having trouble putting in the right getParameter to get: type = radio group button of 2 with 1 as Doctor and 1 as Nurse Specialty = …

Member Avatar for Ezzaral
0
105
Member Avatar for sciprog1

Hello Members, Is there any Permutation API in Java? I found the following: [url]http://www.jsc.nildram.co.uk/api/jsc/combinatorics/Permutations.html[/url] I am unable to figure out what should be the import statement for the above API. I would be grateful for any help. Thank you! sciprog1

Member Avatar for sciprog1
0
118
Member Avatar for amadeus47

Running Win 7 Ultimate 64 bit 9GB mem, two RAID 0 500GB drives - Dell Studio XPS Desktop. Trying to update Java (jre-6u25-windows-x64.exe). Tried everything found on this site and others. Keep getting Error 1714 which Oracle said they have no info for. Suggestions? Tried installing several older versions but …

Member Avatar for Rik_
0
192
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
88
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
735
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
217
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

The End.