32,199 Topics
| |
Hey, I dont know where to start with this problem so I have a super class(Transaction) that has a constructor and I have 2 sub classes (rental and return )they both have the same constructor as the super but they have a toString method that is almost the same but … | |
i hava a code called home.java [CODE] import javax.swing.*; import javax.swing.JScrollPane; import javax.swing.JTextArea; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.Random; import java.util.*; import java.text.*; class home extends JFrame implements ActionListener, Runnable { JButton btndetect,btntest,btnstart,btnexit,btntransfer; ImageIcon ic,ic1,bc; JLabel lbltitle; JTextArea textArea ; JScrollPane scrollPane; JPanel panel; Thread t; public home() … | |
I've searched the page but i can't find a way to mark my previous post as closed. This is slightly different so i was not sure if i should create a new post or add to my existing one. Not trying to break any rules intentionally. in this post i've … | |
Hey guys, im pretty new to java as this is my first time ever taking such a course, and i have an assignment that i have to complete that im stuck on and i have no idea what to do next. Heres what i have so far, and i doubt … | |
I have built a program that will select 5 random cards and display the output as text. I want to add an image to display. In my code i've declared each of the card images, but I'm not quite sure how to tie in the graphic to the output. if … | |
I am having trouble creating the code to end the program if the user enters -99. I have everything else done. The int "testNum" is what holds the value for -99. Can someone point me in the right direction on how to make it where when the user enters -99 … | |
Hi, I need help with this program here. I want to print an isosceles triangle. But, I keep ending up with this here where they are being spaced: --------* -------* * ------* * * -----* * * * ----* * * * * ---* * * * * * --* … | |
Hi, i want to develop an instant messenger using a P2P architecture.. please help me out with the initial steps | |
Hello, i have a question. How do you compare 2 words or integers? the idea is a program should prompt the user to enter 2 words in one sentence (so like "apple orange") then it reads the 2 words and compares them to see if they are the same or … | |
// close an account with a given number public void closeAccount(int id) { } this is a bank project... a customer account is created(array). i would like to know how to delete an array? let say: account number 185649 is found in array[15]. then i would like to delete this … | |
[url]http://www.jformdesigner.com/doc/help/layouts/gridbaglayout.html[/url] Please visit this website, there is a image of a dialogue box , can anyone help me please making them. I dont want full code just some hints . Thank You. | |
hi could anyone suggest a good tutorial about spring security? regards | |
hi people does anyone know how to change the backcolor on a Jtextfield, when the component gets the focus? thanks | |
I'm a beginner, and I was wondering how to write a java code for this: * *** ***** ******* ***** *** * I'm using DrJava. This is supposed to be in a diamond formation. Hopefully it posts that way. Thank you :) | |
I have problem compile this. Line 23 having a problem ( possible loss precision, required int, found double). [CODE] public void actionPerformed( ActionEvent e ) { try { // call a function to get the value - if an error occurs, // display a message box and set focus to … | |
Hello to all, Despite I added all necessary .jar files to project, I always take boring exception warnings that say "class not found". I added the code and exception output below. I'll be so happy if someone can help me. Thanx in advance.. With regards, T ----------------------------------------------------- [CODE]protected void doGet(HttpServletRequest … | |
Hi can someone help me. I sent this question in another forum, but noone is helping. This is the link please hlep! http://www.dreamincode.net/forums/showtopic158550.htm | |
my college project is finished now i want to shine it with different look and feel. I am developed the application on windows platform can i am able to apply quaqua loook and feel to it. if yes then plz give it to me in simple step by step manner. … | |
Hi everyone, I'm having a problem with understanding the workings of an enhanced For loop. This code is meant to iterate through an array of ints and print out the char value of that int. But it seems to start on the first number in the array, making the program … | |
Hi, what I am trying to do is simple: I just want to execute something depend on what the user presses. Here's the pseudocode: [CODE]if(user presses 1) { do this } else { do that }[/CODE] ps. I was reading about [CODE]java.awt.AWTKeyStroke;[/CODE] and is that what I need to use? … | |
Hi guys, I have a problem with arranging my components in a GridBagLayout. The frame is 600x600. Inside it, there are two pairs of (Label,TextField). They are not where I want them to be. What I would like is to have them all at the top of the frame, one … | |
Please can anyone tell me if it is possible to write a program that allow multi client interaction with a server. I am new to Java so any help will be appreciated. Thanks | |
Hello I am really new to Java/Oracle. I am having NetBean 6.8 IDE for development. jdk1.6.0_17 Where do I start? THANKS advance!!!!! | |
Here a simple code which I have to add on project: [code] import java.io.*; import java.util.Scanner; public class Ana { static public void main(String[] args) { try{ File gecicidosya=new File("D:\\B.txt"); File sdosya=new File("D:\\A.txt"); Scanner oku = new Scanner(sdosya); BufferedWriter yaz=new BufferedWriter(new FileWriter(gecicidosya)); while(oku.hasNextInt()) { System.out.println("while started"); oku.nextInt(); System.out.println("file readed"); } … | |
what is the difference between javaSE and javaEE? regards | |
Hello All, I've been through this article and found it very helpful {http://msdn.microsoft.com/en-us/library/bb250489(VS.85).aspx}. I have a 'static' callback method in my BHO dll which is called whenever 'some' event on the computer happens. I need to call a javascript method on all open browser instances when that happens (or do … | |
I am testing with HttpGet to simply see if it would download anything from my website, but the application crashes on startup. Anyone know why? [code=Java]package com.httptest; import java.net.URI; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import org.apache.http.client.methods.HttpRequestBase; public class httptest extends Activity { /** Called when … | |
How to set caption icon in java? Like firefox icon on the top caption bar. and how to run a process in background in java? Thank you. | |
Hi guys, I have a problem using GridBagLayout. I will paste my code here. You can run it. Sorry for the length :) I tried to comment it as much as possible. So there are three panels in this GUI. One left, one right, one south. The problem is only … | |
I need help designing a method that finds the percentile of a value given the percentile rank. Here are the exact instructions: public double getPercentile(int p) This returns the value of the pth percentile. A value stored in the array is the pth percentile if it is greater than or … |
The End.