- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 34
- Posts with Upvotes
- 34
- Upvoting Members
- 23
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 4
Re:
Hi Everyone, I have a fairly simple (atleast it seems to be one) assignment loop program to create. But, unfortuntely having trouble getting started because I took a break from Java and now that I have decided to pick up with it again I feel like I've forgot everything. So … |
|
Re:
i need c++ e-book that should have programs from hello world,addition to vectors,map.in all books they cover only the concepts and finish by 3 programs in a topic.i need a c++ book that covers more than 500 to 800 programs please suggest me a good book. |
|
Re:
Dear friends , I am new to java . I created an JFrame(Calculator) application in Netbeans.Now i want to run that file from console(putty) since i gonna use that .java class in some other program through which i want invoke this . How do i do this . When i … |
|
Re:
Hi, if (!input.equals("Apple")|| (!input.equals("Orange")) { System.exit(1); } The above has no compliation error. But it is not working as expected. Please advise how it needs to be written. -Thanks |
|
Re:
Hello to everyone, I am new to this forum as I am new to Java. I would like to know if anyone has come up with a method that helps in learning the huge collection of classes of the Java API. I know that question is not easy to answer. … |
|
Re:
Hi, I need help getting started on this program: Write a sort method that uses the bubble- sort algorithm. The bub-ble- sort algorithm makes several passes through the array. On each pass, suc-cessive neighboring pairs are compared. If a pair is in decreasing order, its values are swapped; otherwise, the … |
|
Re:
Well, I am actually making a custom 2d turn based gaming engine in Java. So far I have actually gotten a solid based down, the ability to load a seamless game world (no instances) as well as a layered world, with a terrain layer, buildings layer, unit layer then an … |
|
Re:
Hi, I am building a game in which i have used array for applying 52 button, which works fine.But when i try to use Action Listener with the array of button and try use setEnable(false)or true it does not work.I am also sending my. [CODE] import javax.swing.*; import java.awt.BorderLayout; import … |
|
Re:
I was creating this code and I hit a brick wall. Maybe because I have been doing this code for 5 hours and I am burnt out. I just need help to get it working please. Here is the code [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Random; public class … |
|
Re:
Can I create a class inside a method,could anyone Explain me with a simple example ? |
|
Re:
Alright guys, so right now I'm working on a program that finds the current focused window and adds a KeyListener to it. The problem is that unlike when you have a window running and you add a KeyListener to it and it stays working until you close the window, once … |
|
Re:
I am trying to implement a toArray() method in my PriorityQueue. The PriorityQueue returns an array of Objects, but I want to do is have an array of the original type of objects which in this case is Job (which is marked by the 'T1'. The following is the toArray() … |
|
Re:
Hi! I'm a java rookie and I'm trying to learn how to read and write to xml documents. I have a xml-file called tasklist which lies directly in the src directory, at the same level as the executing program but I get the following error: java.io.FileNotFoundException: tasklist.xml (Det gÃ¥r inte … |
|
Re:
Hey guys~! I am working on a code and I am having some difficulties with it -- Basically I have a 3x3 grid of JButtons that represent the squares on a TicTacToe grid. The code seems to run fine but then after it determines a victor it crashes and says … |
|
Re:
Hello everybody, I have a trouble with my assignment . In my assignment, the application have to read the lists of text file before performing the another taks. I want my application run independently on any computer with JVM, so it must be read the text file in the jar … |
|
Re:
Hello, some of my Friends, and I decided to make a Media player using Java just for the fun of it. here are my Questions, #1: is it possible using Java ? or should I use a different language? #2: the process of Reading||Displaying||Viewing Video files is called ? #3: … |
|
Re:
Hello folks, I recently started learning Java and bought a book to look at some examples. When I copied this example program out of the book I get a null pointer exception. Most of the other programs worked perfectly this is the only one iv had a problem with so … |
|
Re:
i need help, for some reason i cannot remove items that i have added to my JPanels the welcome.remove will is causing a problem [CODE]// The "RunescapeCalc" class. import java.awt.*; import hsa.Console; import javax.swing.*; import java.awt.event.*; import sun.audio.*; import java.io.FileInputStream; import java.math.*; public class Game1 extends JFrame implements ActionListener { … |
|
Re:
Hello Daniweb. I'm new to Java, and I love learning it and want to continue learning it. I was curious about how a Java chat server could be made so I found an open source very basic one online. But the problem is when I run the server it gives … |
|
Re:
Here I have a program and I'm getting the following error ControlPanel is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener public class ControlPanel extends JPanel implements ActionListener ^ I don't fully seem to understand how the best way is to overcome this? [CODE]import java.awt.*; import javax.swing.*; … |
|
|
Re:
Hi, I need help with an Assignment that requires me to continue(inheritance) on an existing assignment that I previously did. When I run the program and choose option 4 or 5 nothing happens, it skips the rest of the loop and starts again. #This is the main code that uses … |
Re:
hi everyone can u please correct the errors in these codes? [CODE] // Testing the Stack class of the java.util package import java.util.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class StackTest extends JFrame { public StackTest() { super( "Stacks" ); Container c = getContentPane(); final JLabel status = new … |
|
Re:
Please help me out with this... Sorry, Don't know how to post in coding option. this might be hard to understand. | I just copy it and posted it.... thanks in advance. /* * To change this template, choose Tools | Templates * and open the template in the editor. … |
|
Re:
Hello friends. I want to know what happen if any or all thread is in waiting condition and no notify() is called on thats thread. Please help me to solve this. Thanks in advance |
|
Re:
I have ordered points(x,y) for a route and i got a method optimize which removes consecutive points which distance between them is less than delta (delta=3). The first rule tells that if p1 and p2 distances are lower than delta, then remove p2 from my route. Second rule is same … |
|
Re:
Guys, is it legal to overload the run() method in a Thread class ? |
|
Re:
Could anybody help me with this code 1. want to read a file into an array. 2.three button should sort it 1st product name should sort it alphabetically, 2nd maximum stock level which sort by maximum value, 3rd price sort by maximum value on the top. thanx cheers Demon |
|
Re:
public class AddPlanePanel extends JPanel implements MyObserver { private JLabel planeLabel = new JLabel("New Plane "); private JLabel nameForPlane = new JLabel("Name:"); public JTextField inputPlaneName = new JTextField(15); private JButton button = new JButton("Add"); private JLabel status = new JLabel(); private JLabel typeLabel = new JLabel("Type:"); private String[] typeStrings = … |
|
Re:
this code runs succesfully onnet bean, though it compiled in prompt but compiler is telling me that it is not checked[code]import java.io.*; import java.util.*; class RandomSelection { public static void main(String[] args) { try{ FileInputStream fstream = new FileInputStream("c:\\filea.txt"); DataInputStream in = new DataInputStream(fstream); BufferedReader br = new BufferedReader(new InputStreamReader(in)); … |
|
|
Re:
This is my first post here, so excuse me if I'm not posting my question in the correct format. I'm trying to make a program that determines whether the score entered is passing (higher than 70.0) or failing (lower than 70.0). The array I'm using needs to be declared as … |