32,199 Topics
| |
hi, i've been trying, without success, to maintain the style of the text in a jTextPane when it is copied into the clipboard. what I want is to copy the text in a jTextPane with styles (eg: bold, italic) and to be able to paste it into MS WORD with … | |
Election Applicatin of Classes & Objects `create an election 2010 program with the following details: User Interface: Design your own user interface for the ff modules/methods: >User Leverl(admin & user) for admin,can manipulate the whole part of the program for user can only view voting part. >Registration: Assuming that there … | |
how to create a java program that will accpt an integer from 0 to 9999 and then convert this into words? | |
how to create a jprogram that will find the greatest vcommon divisor?? | |
This is my java assignment for school and I have done most of the work. But I still have some other features I have problems with adding. This is a guessing game where to program requests a number from the user between 1-1000. It will tell the user if the … | |
G'day guys, My boss has just asked me to develop a small CRM system. Now, writing a simple SQL Insert is not something im a stranger to, however for some reason i cannot seem to get this working. I've included all necessary libraries, and tested the actual sql statement in … | |
Hi, I want to know to rows and columns of numbers from a text file. I do not want to read it as a string, but one number (including numbers with decimal) by itself. I tried using FileInputStream and DataInputStream, but I'm not really good at it. I don't know … | |
Hello Everyone! Im making program using java that would look like the (attached file).. If i will choose an item in the combobox(with 3 choices) the corresponding Price would automatically appear on the Price Jtextfield, im having a difficulty if i should use switch or if then else or both..? … | |
Hi, I have some problem in solving my homework in java language. I was asked to produce a boolean array and implement some operation. private boolean[] set; How can I add integer into the array list?? thanks | |
I have just started programming in java. I am planning to do a project on barcode reader. Can you suggest from where shall i start? I want to learn about manipulating pixels. How can i convert the set of pixels into the array of pixels? I am in desperate need … | |
Hi, This code snippet works. Except for one line, which I cannot find the solution to. public void read(Scanner in) { Pattern p = in.delimiter(); in.useDelimiter("\n"); while(in.hasNext()) { in.next(); lineCount++; } //rewind pointer - how!! ?? in.useDelimiter(p); while(in.hasNext()) { wordCount += 1; charCount += in.next().length(); } } ...it appears, much … | |
Here i created four buttons. If i clicked second one i should able to draw a line. please tell me what is the mistake.. [code = Java]import java.awt.*; import javax.swing.*; import java.awt.event.*; class Polygon extends JFrame implements ActionListener { JFrame f; public JPanel jp1,jp2,jp3; JButton b1,b2,b3,b4,b5; JTextField txt; int x,y; … | |
This is code for, a smiley have to move on the screen from one place to another. But in this code Smiley create but it is moving. Please tell my? Is there any wrong in my code. import javax.swing.*; import java.awt.*; class CreateSmiley extends JPanel { int x = 0,y … | |
I tried it by using table.addRow statement.plz i need to add on action performed by ADD button.plz can any suggest me. | |
i really need some help i need a atm program that has 5 default client and a program that creates or add client in the program!! JAVA CONSOLE hope u can help me :) | |
can anybody tell me what java opportunities are exist in the market? | |
[CODE]import java.io.Console; import java.util.ArrayList; public class IteratorEx5 { public static void main(String[] args) { Console console=System.console(); String movie=""; String Subscriber=""; String movieType=""; ArrayList<Subscriber> sub=new ArrayList<Subscriber>(); String stop; BlockBuster dvd= new BlockBuster(); while(true){ System.out.println("Enter the movies name"); movie=console.readLine(); System.out.println("Enter the movies name"); Subscriber=console.readLine(); System.out.println("Enter the movies name"); movieType=console.readLine(); System.out.println("Enter the movies … | |
Hi, I have done my ordering class. which contains all the components. My problems is how do I set picture as the background and maximize the picture size? either one of the way 1) i have a class that contains the picture program. How to connect the two program? the … | |
Why am I getting this error: [code] Please Enter 5 variables: Please enter value in slot 0:1 Please enter value in slot 1:2 Please enter value in slot 2:5 Please enter value in slot 3:4 Please enter value in slot 4:2 [COLOR="Red"]Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5 at Duplicates.NumberCheck(Duplicates.java:32) at … | |
hi, this is my code to display one textarea, textfield and label in the flowlayout. and 2*2 button /** * @(#)Gui.java * * * @author * @version 1.00 2010/10/5 */ import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Gui extends JFrame{ JButton b1=new JButton("one"); JButton b2=new JButton("two"); JButton b3=new JButton("three"); … | |
Hello Members, If possible, kindly let me know why I am not able to see the text in the buttons("Button" and "Button two!") when I run this Java program: [CODE]import java.awt.*; import javax.swing.*; public class Sample extends JFrame { private JButton b1, b2; private final Container container; public Sample() { … | |
My professor said we have to write a page about how to trace this for(int count = 0; count <= 3; count++) for(int count2 = 0 < count; count2++) System,out,println(count2) Can somebody give me a general idea of how to trace this I know the answer is 0 0 1 … | |
I'm stuck. I'm trying to wirte a very small animation applet. It is suppose to import 15 BMPs and then of course play them back in an animation. I have the BMP's stored in a seperate directory but think I have the path right. It seems I am continually getting … | |
My project is as follows: 2. Modify the class NumberTest.java so that: a) The user is prompted to enter an integer and a double and the following information is displayed: a. adding the two number, b. subtracting the double from the int, c. dividing the int by the double, d. … | |
You are required to select interesting problem domain and do analysis and design (using UML) to provide an Object Oriented Implementation (using JAVA). The implementation must demonstrate usage of Object Oriented concepts: encapsulation, inheritance, polymorphism, etc. The application must have at least 4 classes. Please help i am not good … | |
I downloaded netbeans but i wanted it to be in another language is this possible to change, i really dont want to redownload it again... please help and thanks! | |
this code is supposed to be a simple game. the computer picks a random circle in the 100 by 100 square of circles called the secret spot and when you hit a circle it says either go up go down go left or go right until you hit the secret … | |
[CODE]import java.awt.*; import javax.swing.*; import java.text.NumberFormat; import javax.swing.JFormattedTextField; import java.awt.event.*; import java.text.*; public class Database extends JFrame { private JSplitPane splitPaneV; private JSplitPane splitPaneH; private JPanel panel1; private JPanel panel2; private JPanel panel3; private int X1, X2, X3, X4, X5, Y; private JLabel gradeL, equivL; private JFormattedTextField gradeTF, equivTF; private … | |
I am working on a homework assignment. The assigntment info is as follows: Write a grading program that helps to determine your letter grade based on your exam score. For example, when you put in exam score of 80, the program will determine you get a B. Please note the … | |
hi all, i have a programming assignment where i read a text file through command line arguments. i then use that information to get a list of photos (just strings, not actual images) and a list of keywords that correspond to each of those photos. i am stuck on how … |
The End.