32,199 Topics

Member Avatar for
Member Avatar for wrenz.go

the error...[CODE]Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javaapplication1.memberTable.AddMember(memberTable.java:21) at javaapplication1.GUI3.memberAddActionPerformed(GUI3.java:2345) at javaapplication1.GUI3.access$000(GUI3.java:28) at javaapplication1.GUI3$1.actionPerformed(GUI3.java:352) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6041) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5806) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4413) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4243) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2440) at java.awt.Component.dispatchEvent(Component.java:4243) …

Member Avatar for JamesCherrill
0
83
Member Avatar for Xiek

Hi, I am using the OR operator in my while loop and its not very responsive: [CODE]while (transaction != 'Q' || transaction != 'q' ){}[/CODE] The user previously entered a character for the variable transaction, however when the user enters 'Q' or 'q', the while loop is not skipped. Can …

Member Avatar for Xiek
0
82
Member Avatar for nevets04

[code] import java.util.*; import java.lang.*; class sub { public static void main(String[] args) { String a = "1"; String b = "2"; String c = "3"; String d = "4"; String e = "5"; String f = "6"; String g = "7"; Scanner sa1 = new Scanner(System.in); System.out.println("1) Encrypt"); System.out.println("2) …

Member Avatar for nevets04
0
197
Member Avatar for ajy27
Member Avatar for gibson.nathan

im working on this program and im getting really stuck. i was hoping to get it done soon, but it is dragging out. i have completed the first half of the instructions, i believe. [CODE]2. Create an abstract class called Student. a. Student will need instance variables name , qz1, …

Member Avatar for VernonDozier
0
218
Member Avatar for arem4sure

i want to create Java program that accepts 3 numbers (num1, num2, num3) and sort them in ascending and descending order. Example: Enter num1: 8 Enter num2: 3 Enter num3: 9 Ascending: 3, 8, 9 Descending: 9,8,3 can anyone help me for this (sorry for my bad English)

Member Avatar for mahkris
0
109
Member Avatar for abhay1234

i was trying to run a program on RMI i did the following [code] import java.rmi.*; public interface HelloInterface extends Remote { public int add() throws RemoteException; } [/code] [code] import java.rmi.*; import java.rmi.server.*; public class Hello extends UnicastRemoteObject implements HelloInterface { private int m,n,message, k,l; public Hello (int m,int …

Member Avatar for mahkris
0
132
Member Avatar for rukshilag

Can someone please explaon the difference of the above action listeners?? it seems like they both do the same thing - that is close a frame/window. big help thank you

Member Avatar for kudresov
0
240
Member Avatar for raashi.rai

Hello guys.. i need a help.. m new in java swings.. m using netbeans to create one application.. here i have to insert a new jtable at runtime.. like when a click on a button jtable should be inserted.. how can i do that in netbeans.? please help..

Member Avatar for peter_budo
0
83
Member Avatar for tnccjavaMatt

I have to write a program that creates a GUI that prompts a user to enter a query, then return the result to the same screen. All the examples I've found in my text book and other course material only shows how to account for a predetermined query. How do …

Member Avatar for tnccjavaMatt
0
876
Member Avatar for kool005

Hi, I have some vertices and edges and i have to create an adjacency list. I have taken an array and stored all vertices in the array. Now i need to add the edges to the graph. The input is given as a text file. When i read "a b …

Member Avatar for mellowmike
0
136
Member Avatar for sammen89

[B]Background:[/B] Hey guys I'm making the first part of a greater program. We are instructed to create a program that stores a list of all our CD's. It has to be created in 3 different classes... that obviously link together. [B]My Question[/B] How do I create an array that is …

Member Avatar for Um num num
0
157
Member Avatar for zackzak

I am creating a game like the text-based game Zorg using a console program. However, I don't know how to create a save file. How can I do this using the player's name to restore the variables I need?

Member Avatar for zackzak
0
150
Member Avatar for hulk33597

hi guys .........help me ... how to accses shared file from lan by java proggram (tell me by code). plz help

Member Avatar for peter_budo
-3
66
Member Avatar for Dscyth3

Hey, I'm working on a problem and what I need the program to do is to add up the numbers in the array NOT add up how many numbers there are. There are 5 total numbers that a user will input. The counting of the numbers will be in a …

Member Avatar for kudresov
0
82
Member Avatar for digital_dizasta
Member Avatar for imclumsy

Hi guys, I have this project question that is just REALLY boggling me and I am getting nowhere :( The project description is really large and I can't post all of it hear but I'd just like to post the part I'm on and how far I've gotten with the …

Member Avatar for imclumsy
0
151
Member Avatar for beforetheyknew

So the program I have is supposed to read from a file take that data (which is split into three parts divided by a space). These Strings need to be read and stored in an appropriate field. Now i dont know how to do this, I've tried with an array …

Member Avatar for imclumsy
0
109
Member Avatar for Moonrise_state

Hi again, I have a small application that calculates time left over in a day after events. The problem I have is that if either the starting time or ending time is 4.10 or 5.10 I get slightly incorrect answer. Eg. if the only event starts at 4 and ends …

Member Avatar for Moonrise_state
0
111
Member Avatar for Um num num

Hello pplz I’m just starting to play around with the arraylists and GUI a bit and I’m having trouble figuring out how to access the arraylist and display it. This is what I got so far for when the add to arraylist button is clicked I’m not shore if it’s …

0
56
Member Avatar for NickT80

I need to write a program that takes in an input using JOptionPane and make sure it is more than 15 characters, then count the number of uppercases in the phrase. Please help desperate student.

Member Avatar for imclumsy
0
95
Member Avatar for Sandar Khin

Hi all Plz help me about media streaming.I want to play files that transmit from 'rtmp' link at my java application program.I have a program that play from 'http' link.Code is here [code] import java.awt.*; import java.awt.event.*; import java.io.*; import javax.swing.*; import javax.media.*; //import com.sun.media.protocol.rtsp.DataSource; import java.net.*; public class MediaPlayerTest …

0
57
Member Avatar for johnyjj2

Hello! There is possible to download automatic speech recognition engine Sphinx4 in two versions, one is bin, the other is src. It is explained how to build Sphinx4 engine with Ant here: [url]http://cmusphinx.sourceforge.net/sphinx4/#how_build[/url] . However there are many applications which use this Sphinx4, e.g. HelloDigits. I'd like to create my …

Member Avatar for johnyjj2
0
225
Member Avatar for beshoyatef

Here i mad panel and i put two Boxes in it , then i tried to make a background color for box by useing ([B]background(color.blue)[/B] method) but it never has the color . Then i try to resize its height by useing [B]Box.createRigidArea(new Dimension(10, 50))[/B] but the titleBoard take all …

0
73
Member Avatar for MxDev

Hi guys, Is there any javaFX code generator other than [ICODE]jfxbuilder[/ICODE]??? And Is someone here knows any news about [ICODE]javaFx authoring tool[/ICODE], like the release time, cause I got nothing from [ICODE]google[/ICODE]. Thanks [EL-Prince]

0
59
Member Avatar for Menster

Hi guys, I am trying to create an application to serve on the web which is an integration of a java application and some php for mostly presentation functionality. Has anybody here successfully done anything like this before, and if so how? Please help. In dire need here. Thanks in …

Member Avatar for kireol
0
183
Member Avatar for Beasts

Hey, I have been using youtube to learn how to use the JPanel, as the prof has not given a lesson regarding that… The project was a game, which I have finished, but for bonus I can do some sweet sweet graphics. Anyhow the game saves the data in arraylists …

Member Avatar for Ezzaral
0
93
Member Avatar for Clawsy

Hello, I build my java desktop application using NetBeans 6.7, visually. So I click on the Frame -> Events -> KeyTyped and I add a new handler. The problem is the key events are not detected! My components are Swing components. Why is this happening?? :( [CODE] private void formKeyTyped(java.awt.event.KeyEvent …

Member Avatar for Clawsy
0
436
Member Avatar for gibbsfan19

I finally got it in order for smooth compilation, but nothing gets converted [CODE] import java.util.Scanner; public class nizadi_Lab8 { public static void main(String[] args) { if(args.length > 0) { try { Integer.parseInt(args[0]); } catch(NumberFormatException f) { System.out.println("wrong format"); } } else { System.out.println("no arg"); } } public int printBin(int …

Member Avatar for stevelg
0
146
Member Avatar for ramjeev

For synchronized block, an object has been passed.The question is,Why & when it is passed & what is the purpose of passing an object? -Thanks in advance

Member Avatar for ramjeev
0
107

The End.