35,586 Topics
![]() | |
hi i want to know that what does the scale() method of AffineTransform do i mean when we reduce the size of a image does this transform reduces the number of pixels or something else ......... | |
Hello All, I am having a problem with removing a specific item from a linked list. Any advice would be great: Here are some snippets: private Node head; //the head node at the front of the list private Node previous; //element just before the current position private Node current; //refers … | |
Ok, i have been making a chess game program, basically what it is is a chesspiece class and a chess board class, the chessboard class has an 8x8 2-d array of chesspiece objects, then i have my frame, my frame has a parallel 2-d array of Jtoggle buttons, when a … | |
Hi, I was wondering if there is a way to split double into its integer part and decimal part. I' working on binary converter, and my teacher gave me 4 steps on how to write the program. I've completed step 1 which is separating number into integer and decimal portion, … | |
I'm trying to make a circle appear from a class I've developed to move following the x co-ordinate of the mouse. I've done that part correctly, it's just loading the class...Can anyone tell me why it isn't loading? I do love to solve problems myself but I've been working on … | |
Suppose i try to instantiate an abstract class then a checked exception is thrown,but who handles it or how is it handled? | |
I am currently working on something where I have to make two shapes which extend to a class called 2d shape. I am currently working on my Triangle class which is this: [CODE]lass Triangle extends TwoDShape { String style; Triangle(double width, double height, String style) { super(width,height); } private double … | |
I've posted a new article on my site, dealing with how to integrate JavaScript and ASP.NET. It's a "beginner level" article. [url]http://www.tgreer.com/aspnet_html_03.html[/url] | |
Hi all, I'm a n00b at Python and am working on outputting html using pyhtmloo - I've checked the [URL="http://sourceforge.net/docman/index.php?group_id=89844"]pyhtmloo site[/URL] for guidance but no joy there. Hopefully I'll find guidance here... The python code below outputs an html page and what I'd like to do is set the refresh … | |
I am having trouble with a piece of javascript code that expands blocks of text. For example, when you click the title, the text under it will expand. I am fairly new to javascript but it looks like the code bassically re-writes the link in the html so that when … | |
Hi Folks, My requirement is like this : How to get User Name using LDAP when my application URL hitted by user in intranet for example: Suppose Application running on my system and any person in intranet hit the my application URL , now using LDAP i need to find … | |
The program is broken into two parts: the lexical analyzer and the syntax analyzer plus semantic. The lexical analyzer should recognize the token using DFA and return the token and the value. The syntax and semantic part can be done by using any algorithm that can check for the correct … | |
Hello, In my java class we've been asked to create a painter program that allows the user to draw on the screen (as with a paintbrush). I had no trouble creating the program and having it perform up to standards with what was asked, but something that troubles me and … | |
Could someone help me out I need to change a String such as "asu" I'm thinking of using the ascii but I'm not sure how i could do that | |
Hello EveryOne I need Help here ,i have been trying to view this GUI but it keeps showing me this erroe `NoClassDefFounderError`. Anyones help would be appreciated. import java.awt.*; import java.awt.event.*; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import javax.swing.*; public class HeartLandHomeFinance2 extends JFrame { JPanel Panel; JLabel … | |
Hello Could anyone help us , we have a minesweeper's game code in java the game is good but has two problem the first one is when you press a mine button the game should be over and you can not press on any other button but our code allow … | |
I want to change the color of the whole row("which is containing different data types in different cells") depending upon the value of one column. Have any idea????? Please help!!!!!!!!!!!!!!!!!!!!!!!1 | |
Hi friends, I am using Netbeans 6.0.1 and I've installed MySql on Fedora 8...I 've been able to configure the jdbc-MySql connector that's bundled with Netbeans and I can create tables and query MySql using the Netbeans GUI.So I guess my connection was correct...My connection properties are as follows: Database … | |
I have a string that looks for example like this: "aabbccddeeffgg" I want to retreive the "ee" or the "cc" value from that string. How can I do that ? The tokenizer is not what I am looking for. I'm looking for the function that allows you to specify that … | |
Hey can any one help me i'm doing a hangman program and want to display blanks where a to z is. how can i do this? I've got it replacing "a" but can't get it to replace the rest i.e. b to z any help would be appriaciated. [code] show … | |
private static int readFile (String filename, String[] capacities) the file whose filename is given as a parameter, and fills array of strings representing capacities. Error checking: Each line of the file should be checked for the following errors. Lines of the file that contain errors should not be put in … | |
Hi people, i am totally new to java and is still pretty much struggling with it now... please forgive me if i sound stupid from here on... I am trying to come out with a simple java login console application using a flat file as data base. I have done … | |
Has anyone else had trouble using the sleep function? | |
hello, My computer have a problem when i start, there a error message "couldn't load main class". I need to know if i update the java can resolve this problem. Thanks | |
Hi, I have to refactor the method kingRange under, the goal being code readability : [code=java] /* For information, here are the class fields needed here : private String setUp; public final static Collection validPieces = Arrays.asList(new String[] { "R", "N", "B", "K", "Q" }); public static final int LEFT … | |
Hello, Im trying to implement a program which will split a text file and then parses the elements to an arraylist. My text file looks like that: [QUOTE] Name: Mariah Johnson Customer no: 663,283 Post code: BA1 74E Telephone no: 028-372632 Last modified: Jan 11, 2007 8:10:05 PM GMT Name: … | |
define a method addOn that it adds the data argument to the list in the sorted location in alphabetical. There can only be one of each company in this list. public void addOn(company data) { Node it = new Node(data, head); head = it; it.data.toString(); } this is a small … | |
Hello all. I was looking for a set of java classes that I can use to synch midi output of a speaker to output on the monitor (or other actions). I've been looking for the longest time in google, and I can't find exactly what I want, or at least, … | |
Hi everybody, my problem is as follow, I have two classes myClass and myGUI myClass code is [CODE] public class MyClass { public void start() { while (true) { // do some stuff } } public void stop() { System.out.println("Hello from stop method!"); } } [/CODE] myGUI code is [CODE] … | |
hi im new to this javascript business and have a problem with the following code [ICODE]<HTML> <HEAD> <TITLE> SOFASPEND - IN THE BEST POSSIBLE TASTE </TITLE> <SCRIPT LANGUAGE = "JavaScript"> /* Program to prompt for a number and then display message according to the response but allowed 2 maximum tries … |
The End.