32,204 Topics
| |
First here is what I need to accomplish: --------------------------------------------- The program In this program you will create a direct access file on a simulated disk. A number of sectors will be allocated for the file and records will be written to the sectors using hashing. The sectors will be buckets, … | |
My code outputs the correct answer to both the GUI and to a text file, but it displays it in a list format instead of a clean looking table. What modifications have to be made to assign formatting of output correctly? [CODE]import javax.swing.*; import javax.swing.border.*; import java.awt.*; import java.awt.GridLayout; import … | |
Hi all I want to know what player can I use at my java application(at my JPanel) for playing rtmp streaming.I do need your help.Pls help me.Thank in advance. | |
Hi all, I have a program, which is invoked from a shell script. I need to return back to the shell script a status, whether the program succeeded or failed, so the shell script determines whether to continue with its normal course of actions or to stop upon faileur. So, … | |
I have this program that I am working on that I am trying to insert user entered integers till a "-1" is detected and it will stop inserting the integers into the Tree and print it out inOrder. I am geting 2 errors: File: S:\makeup1.java [line: 9] Error: S:\makeup1.java:9: cannot … | |
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) … | |
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 … | |
[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) … | |
Can u plz help me..how to re-boot my pc after installing java | |
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, … | |
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) | |
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 … | |
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 | |
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.. | |
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 … | |
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 … | |
[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 … | |
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? | |
hi guys .........help me ... how to accses shared file from lan by java proggram (tell me by code). plz help | |
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 … | |
| |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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] |
The End.