32,199 Topics
| |
hi, I have written my first pom.xml and on making a build it says, u are using java 1.3 you need 5 or above. I only have 1.6 installed in my system, Can anyone please help me, please tell me where do I need to check, I have checked all … | |
Hello, I'm working on a bluetooth chat application project called 'BlueChat'. I coded the server (BServer.java) and client (BClient.java) parts (2 separate threads). The visual part is called BlueChat.java and allowes the user to select to be the server or the client. I wrote a lot of System.out.println("")'s to check … | |
dear friends, I am working on small project for that i am making a setup from install creator and launch 4j after creating a jar file. But in that step .exe file is needed . pls help me to create a .exe file. thanks & regards shashikant | |
Hello there, I am working on an assignment for school and I am having a hard time understanding the concept of an array of objects. I am required to create an array of Music objects so that I can search through them via a binary search and make changes as … | |
I need to make a sorting algorithm. The program takes an input file that stores the information into an array: the array has student's name and a personality type. The personality types are: enum values Realistic Artistic Social Conventional Then once it takes an array, it sould divide the main … | |
these are all my codes and im trying to make shapoes in myshapetesrer2.these are the directions i have to follow but i dont kn ow if i did tem right any help? Write an abstract class: ColoredShape A ColoredShape has a position (x and y coordinates that are integers) and … | |
Hey I want to simulate a knight moving in my Knight Tour Gui, this is the display code, the moves are stored in the arraylist moves. [CODE] public void display() { for(int i = 0; i < moves.size(); i++) { //Gets the correct button JButton button = square.get(moves.indexOf(i+1)); button.setText("" + … | |
Hello, I'm trying to develop a chat application [I]over internet[/I]. First I want to send just strings... later files. I want to have a client that is a java applet that connects to the server - a java desktop application. I waould like to send files later over applet and … | |
I'm having problems generating CPU turn; preferably with AI, and also draw between player and CPU. [CODE] jButton1.setEnabled(false); boolean Userturn = true; JLabel[] label = new JLabel[9]; label [0] = jLabel1; label [1] = jLabel2; label [2] = jLabel3; label [3] = jLabel4; label [4] = jLabel5; label [5] = … | |
Hey guys, basically what i'm trying to do is take each line from two text files and store them into two variables, salt and original. I then want to pass these 2 variables to a different method called: crypt(String salt, String original) How would I go about doing this? Many … | |
Hi, i've started making a simple breakout game with java swing. This is just for fun and to learn more about java and swing. I got a frame and a panel and a mouse listener. I draw a paddle on the screen and it moves as the mouse moves. I … | |
Hey guys, I've very new to JSP, Java, and Netbeans and I'm having an issue... So I've got an ArrayList of User objects and I'm trying to iterate over the list in a JSP page to display the info. I've included the JSTL 1.1 jstl and standard libraries. Here is … | |
Fellow Java Coders, I recently got a project to do for my coursework in university which requires that me and my group members simulate a file manager similar to windows explorer but I guess not as complex. Here is a synopsis of what is required: The members of this group … | |
[quote] I'm having a problem with constructor. I get an error an error "invalid method declaration; return type required" on line 75 ..here is line 75 TypeOfStudent(int minAge, int maxAge, String name) ..and I've posted my whole code below[/quote] [CODE]import java.util.*; public class Student { private String name; private int … | |
Hi, I have done this code to learn ArrayList. I keep getting errors. Basically I want to accumulate names in list and when user types 'n' at prompt, it prints out names. What is wrong? [CODE=java]package mtangoo; import java.util.ArrayList; import java.util.Scanner; public class MainClass { public static void main(String args[]){ … | |
Hi, i'm learning java and I don't know why I'm getting this error. New Error on line 11 - "Cannot find symbol" [code] int first, second; int first, second; double firstcube, secondcube, power = 3, num = 3, pow; Scanner scan = new Scanner(System.in); System.out.println("Enter First Number: "); first = … | |
Hello, I created a web service to access oracle database. This is my code: [CODE] package mypack; import java.util.List; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.WebParam; import java.sql.*; import java.util.ArrayList; @WebService() public class AutoRepairWS { @WebMethod public List getCustomerId(@WebParam(name = "Cust_Id") String Cust_Id){ String user = "****"; String password = "****"; … | |
after deleting 2 ,55 and 21 ..am getting only in in-order how do i make other 2 oders package com.eyc.roughworks.binarysearchtree; import java.lang.*; import java.io.*; public class pBSTRemoveNode { public pBSTRemoveNode left, right; public Comparable data; public static pBSTRemoveNode tree_AddNumber(pBSTRemoveNode r, Comparable n) { if (r == null) { r = … | |
i just started the course but teacher gave me this amazingly hard question for to start with he said it's some sort of challenge question im not just asking you for the answer but i think i need LOTS of // The "Taxesforresidents" class. public class Taxesforresidents // The "Taxesforresidents" … | |
a do-while loop!!! sorry [CODE] import java.io.*; import java.util.*; public class guessing { public static void main (String args[]) { int answer = 22; System.out.print("Enter your guess, if you are correct you will be a winner "); Scanner guessReader = new Scanner(System.in); int Input = guessReader.nextInt(); { if (Input< 1 … | |
I'm suppose to do this using sorting algorithm..so it asks to creat a friends database application that maintains a file of friend objects that contain names, telephone numberrs, and email adresses..etc. The friends application should load friend records from a file and then allow the user to add new friends, … | |
I'm trying to make a program that will compare the results in calculating the Cosine with powerseries method and Math.cos method. This is what i have. [CODE]import java.util.*; class Cosine{ public static void main(String[] args){ int degrees = 0; Scanner myScanner = new Scanner(System.in); while(true){ System.out.println("Enter some integer value of … | |
hi frenz! can anyone plz help me out?! how to implement image manipulation tools of photoshop in java?! how i must start plz help!!?? | |
hi how are u all this is my program [CODE]import javax.swing.*; public class Qustion2 { public static void main (String args[]){ double x =2/3; double y = (3*x*x)-(8*x)+4; JOptionPane.showMessageDialog(null,"At x= " + x +" the value is " + y); } }[/CODE] Mathematically when i substitute x =2/3 i get … | |
I'm new to Java, but will eventually want to use GUI for my Desktop applications. So as usual in any language, GUI toolkits are "debatable". In Python (My current "mother toungue") We have PyQT vs PyGTK vs wxPython and it is a good debate. I would like to hear your … | |
Please someone help me... why image panel not showing that image in the frame: [code] //image panel class import java.awt.*; import java.awt.image.BufferedImage; import javax.swing.*; public class ImagePanel extends JPanel { private BufferedImage img; public ImagePanel(BufferedImage img) { this.img = img; Dimension size = new Dimension(500,500); setPreferredSize(size); setMinimumSize(size); setMaximumSize(size); setSize(size); setLayout(null); … | |
hi all, this s my first thread... Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 3 at calculator1$nextListener.mouseClicked(calculator1.java:1048) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212) at java.awt.Component.processMouseEvent(Component.java:5520) at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) at java.awt.Component.processEvent(Component.java:5282) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3984) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3819) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1791) at java.awt.Component.dispatchEvent(Component.java:3819) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at … | |
Hi there Iam busy creating an .ini file for an application, but it is throwing a null pointer exception the whole time and can't seem to figure out what the problem is. Why would it throw such an error and what does it mean? Could you please help me? Will … | |
Hi i came across a problem with for my GUI project. for my class project i am designing an appointment calendar. for the layout i am using absolute positioning. so when i run my login class, some times the frame pops-up to a weird default Java frame (not re sizable) … | |
The board game scrabble works by assigning points to wooden tiles arranged in cells on a board. It's described here:[url]http://en.wikipedia.org/wiki/Scrabble[/url]. We'll simplify this considerably, and consider the following question. We begin with the letter-scoring scheme from Scrabble: a = 1, b = 3, c = 3, d = 2, ..., … |
The End.