32,204 Topics
| |
I have file that contains Unicode characters from Latin-1 and Latin Extended A sets (link to [URL="http://unicode.org/charts/"]Unicode charts[/URL]). How do I read it so that these unicodes are converted to proper characters? I tried [code=Java] public void readFile(File file) { try { BufferedReader in = new BufferedReader(new FileReader(file)); String noneUTF; … | |
I'm back guys! This time I'm working on this project for class. I have to make a "point of sale" thingy. I worked on it using GuiGenie. My design has four buttons, and I want to design it in such a way that when I click one of the four … | |
Hi, I am having a terrible time getting to grips with layout managers, and am hoping someone can shed some light onto my misery.My problem is this: I have created a simple GUI, that contains a button panel, a picture panel and a radio button panel.All these panels are put … | |
[B]my project in java is for blind people, basically it is a tutorial. i want some application in java which converts speech into text and text into speech, till now i dont know from where i can these applications. please suggest me in this way, i will be very thankful....[/B] | |
Hello everyone I am trying to print out a load of printables on different pages, I have made the containing class Pageable, and implemented all the methods as below, the acutal printing is done in printAllGraphs() : [CODE] PrinterJob printerJob; PageFormat pageFormat; int numberOfPages; public void printAllGraphs(){ //this.chart.print(); numberOfPages=this.dataList.size(); System.out.println("Number … | |
Hi! My GUI consists of one main window and it takes 5 seconds before the this window is displayed (after pressing on the "Run" button in Eclipse). I want the window to be displayed at once even though it’s fetching tasks from the service. How could I do that and … | |
here is assignment create a book class with getter ans setters. create a driver class book_driver, and create an array or arraylist to hol at least four books. built the book class, built the book driver, having problem successfully building the array. I have not finshed the book driver; as … | |
how should i prevent the shallow copying? every class i think i would need to copy i need to do the 'clone' function? is there a 'copy constructor'? the thing is - i have a constructor that gets objects as parameters. how do i copy it into the data member? … | |
[code] //package Answer; import java.sql.*; class Answercheck { public static String correct; public static String user="Brandon"; /* public static void check(int q1) { String dataSourceName = "questions"; String dbURL = "jdbc:odbc:" + dataSourceName; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection(dbURL, "",""); Statement s = con.createStatement(); s.execute("SELECT copt FROM Ques WHERE … | |
hey all I found out today I needed to do a testdriver for my programme as we no it took me forever to do the programme so will some one explain the test driver to me or even help me I no this is a silly thing but im so … | |
i have absolutely no idea what to do, can someone explain the steps, or do it and explain what they did? [CODE]/** A purse has an array list of coin names that can be changed by adding coins. */ public class Purse { //instance variables private String[] coins; //the money … | |
Please help me. I am in an intro computer programming class and I dont know how to use arrays. [url]http://i196.photobucket.com/albums/aa228/Sylvestri89/problem.jpg[/url] | |
Dear friends my name is Sijo Thomas , now i would like to design an application for accessing a centralized database through a software in java(java used in software and J2EE in webapplication) That means i want to access a data from a centralized database by querying through a software … | |
Hi this is sri and i am new to java.Here is a xml file. My task is to parse all the xml elements in java without using any parser like dom,sax. So pls help me[U] how to parse xml elements without parsers[/U].I have to get same out put as when … | |
I'm relatively new to java, so please bear with me. Anyway, I've written a program that makes use of both images and audio, and I'm trying to package these into the .jar file. My goal is to be able to run the program without requiring any files besides the jar. … | |
Hi I need to create a [B]desktop shorcut to run my application [/B]locally in my PC, I need to [B]launch my web application using Java Web Start in Netbeans IDE[/B], i googled on this particular topic but it says in the project properties window, go to Application --> Enable web … | |
hello! i need your help to know which checkbox cause the event: i have 2 checkboxes and 2 radiobutton (in swing),then i add the 2 checkboxes to a buttongroup and the 2 radiobutton to a buttongroup,so as default 1 checkbox and 1 radiobutton are selected,so when i check other radiobutton … | |
Hello Members, The following problem has troubled me for sometime now: I have an applet called FileA.java. It has two classes both of which are JPanels. Both these JPanels are then added to the applet in the public class of FileA.java. I use BlueJ. The program works well offline on … | |
neep help in making this 5 54 543 5432 54321 1 10 101 1010 10101 | |
i have a problem with a photocopying machine task i need to right class called photocopier and add the code to create the instance variables powerStatus, an integer instance variable ( -1= standby, 0=Off and 1 =On) letter, a string instance variable for (none, general, form,menu and paper) copying a … | |
hi,everyone I try to make one software like microsoft office power point ,but i had problem 1)how to insert image(background) into JPanel (SLIDE)using JButton 2)how to preview the slide THANKS A LOT | |
How could I synchronise the timer with some process that runs during X seconds. I need the timer to count seconds only if the process is running. If the process is terminated, then the timer must stop. [COLOR="Red"]Most important is that the process execution time is not known apriori.[/COLOR] Otherwise, … | |
Hey guys! Much help needed here! I am a student doing a protein structure alignment algorithm which is my final year project, using various forms of translation, rotation & computing the RMSD. From line 164: This is my loop calculation, basically it computes the Root Mean Square Deviation (RMSD) of … | |
I know this is strange, but i have a simple syntax question. Right now I'm working with a thread in the following format. The use of "setDaemon" in the run function does not work, as you apparently must set Daemon before you start the thread. [ICODE]new Thread() { @Override public … | |
Hi I'm new to java, and I'm trying to make a very basic game. The problem is that i have 3 classes that cooperates and I can't get one of the values from class "Board.java" to "gp1.java". In Board i have a button that "rolls the dice" x2 and adds … | |
hi to all....i have a video club system where am using an sql server to store records about films....i successfully created the database, the table and input data data into the database using the SQL Command window in netbeans.....however when i use the JOption Pane to input data the VideoName … | |
Hello I am not sure what is getting serialized. I would like to serialize a JInternalFrame. So what do I send my SaveFrame.java. because it puts a file "null.dat" in the folder. I sent the frame got null.dat sent something I thought was the class of the frame (as shown … | |
I have the problem like that ". Write a short Java program that outputs all possible strings formed by using the character ‘c’, ‘a’,’r’, ‘b’, ‘o’ , and ‘n’ exactly one."..and the code here: [CODE]public class StringPermutation { //---------------------------------------------------------------------------- private static char source[] = {'c', 'a', 'r', 'b', 'o', 'n'}; … | |
I have an assignment to write a java class. What I need to do is write a class and a driver. I need to write a class that stores instance data as members names. Golfmember(name : String) then in the driver I would have something like: golfer1 = new Golfmember(); … | |
This might be a stupid question but I can't figure out how to set my array equal to my method which returns an array. This is what I did and there's an error. :/ [CODE]array=array.resize();[/CODE] Thanks guys |
The End.