32,199 Topics
| |
Hai Friends, What is Swingworker class? were we can use this class? what its advantage? can any one explain this.... | |
I am having a problem with my code which handles whether or not the client has disconnected this is the run method for each thread. The code gives me an error, something about the nested catch block not ever happening or something. I didn't understand. Thanks for any help. I … | |
to declare and populate my array i am using [CODE] //declare Image pictures[][] = new Image[16][14]; public void init(){ //populate pictures[2][0] = getImage(getCodeBase(),"twohearths.png"); pictures[3][0] = getImage(getCodeBase(),"threehearths.png"); pictures[4][0] = getImage(getCodeBase(),"fourhearths.png"); pictures[5][0] = getImage(getCodeBase(),"fivehearths.png"); pictures[6][0] = getImage(getCodeBase(),"sixhearths.png"); pictures[7][0] = getImage(getCodeBase(),"sevenhearths.png"); pictures[8][0] = getImage(getCodeBase(),"eighthearths.png"); pictures[9][0] = getImage(getCodeBase(),"ninehearths.png"); pictures[10][0] = getImage(getCodeBase(),"tenhearths.png"); pictures[11][0] = getImage(getCodeBase(),"jackhearths.png"); … | |
I need a method of rendering HTML in Java. I was originally planning to use [URL="http://www.genuitec.com/about/labs-webkit-for-swt/WebKit%20For%20SWT%20Developer%20Guide.html"]WebKit for SWT[/URL], but I'm having problems with it displaying images as specified in the CSS. Most examples I've seen have worked fine when loading an external html file, even the package mentioned above. My … | |
Hi I'm doing a project which requires a registration/login page. I have created both registration and login html pages and have done the validation servlet for the login page. I've also attempted the validation servlet for the registration page, but this is where I am struggling because I can't get … | |
installing java on my firefox explorer get right to the end of the installation and it gives me an error message saying "error 25099. unzipping core files failed" doesnt allow me to do please help as my name says im a big noob when it comes to pc shit. | |
Hello DaniWeb. Here is my problem. I have an XML file that is arranged like this.. <document> <Word>apple</Word> <Word>hat</Word> <Word>car</Word> </document> I'm trying to figure out how to grab the actual words. This is how I'm doing it now. [Code] DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = builder.parse(new File("data/general/words.xml")); NodeList … | |
I'm trying to execute this code to open a java GUI to run queries on the oracle express database I have set up but at the actionPerformed() class, I keep getting java.sql.SQLException errors. What I would like for it to do is when you hit the button, that table from … | |
Guys a little help please. I already finished my program, I just need enter codes in order for the user to simulate the program again using loop. How do you do that? | |
hi; i am new to java.i want to get data from db for jcombobox.plz help me | |
I've played around with HTMLEditorKit and HTMLDocument, and while I've managed to do the parsing I needed, I also need the complete source code of the document to pass along to a webkit renderer. Java's existing document throws out some tags after I read it in. [code] HTMLEditorKit kit = … | |
I am using the netbeans gui builder. I dragged a filechooser onto my frame, and it does almost everything I want it to do. How do I remove the buttons? I dont need them - the user just has to select a file, or type in a file name, the … | |
I am going through the java basic. I need some simple sample programme using the concept of class and interface with description. | |
Hi members! Sorry I need a help with this snippet. I am still workin' on it... the thing is all the three buttons ain't working. And Can anyone tell how to compare the values of username and password against a database in Ms access. Thanks Here is my code import … | |
hi All i have a question. plz answer if u can. i must b very thankful to u question is Why use abstract classes at all? Why not just declare a class and then make sure you never instantiate any variables of that type? thnx in advance | |
import javax.swing.*; import java.awt.*; public class sample { public static final int width=500; public static final int height=500; public static void main(String[] args) { JFrame mywindow=new JFrame(); myWindow.setSize(Width, height); JLabel myLabel= new JLabel ("How do i insert picture in this window? I want to create a photo gallery on this … | |
Hi friends, I am facing a problem with Signed jar file. I have two jar files.One contains applet class and other jar file contains supportive classes used by that applet.I was able to self sign the applet jar file let name it as "ScreenApplet.jar" using jarsigner tool. The supportive jar … | |
Hi, I'm trying to call a bunch of methods during run-time using reflection, but I'm getting an exception saying "IllegalArgumentException: wrong number of arguments". Here's some information on the variables used. - All elements of mailTestClass[] are classes that extend AbstractTestCase. (FirstTestCase extends AbstractTestCase and FirstTestCase.class is the first element … | |
Hello, I built a chat application that uses sockets and TCP/IP protocol. The client is an applet. The problem is I cannot connect the applet client with the desktop server application. [I]If I run the applet inside the applet viewer in NetBeans it works perfectly[/I]. I even tried the applet … | |
hi helpers, i wanted to develop a discussion forum in java,...downloaded jforum 2.1.8 War file,...imported to eclipse,...what else should i do to run the project?.....sadly i didnt find 'how to' any tutorial in net :( i've never worked with any open src projects b4,...how to configure mysql db for it?...where … | |
Hi. I have an issue. That's given a snippet of class. [CODE]public constructor () // the start of constructor { JPanel courseChooserPanel = new JPanel(card); box.add(courseChooserPanel); CardLayout card = new CardLayout(); Department comp = Department.get("COMP"); // refers to another class CourseChooser compPanel = new CourseChooser(this,comp); // refers to another class … | |
I am trying to code a calculator and I am stuck. How do I set the resultField.setText to values ? [CODE]import java.awt.*; //Contains all of the classes for creating user interfaces and for painting graphics and images import java.applet.*; import java.awt.event.*; //Provides interfaces and classes for dealing with different types … | |
"Write the definition of the method doubleArray that initializes the elements of beta to two times the corresponding elements of alpha." is what it says I have to do but i can't figure out exactly how to do it. Any suggestions on how to do this? Here's my code: [code] … | |
"Write an applet that draws the house (house Rectangle white, two quader windows black, triangle ruff white, rectangle door black. When the user user clicks on the door or windows, they should close, The figure should look clear ruff, clear house rectangle, clear door with door opener (circle black), windows … | |
I have a project of making a game named "PACMAN" in object oriented programming using java.I don,t know what should I do.Please help out me. Waqas Gondal | |
what is the main function for this variable in the code [CODE]int n= 1;[/CODE] [CODE]import javax.swing.*; public class Qustion3C{ public static void main (String args[]){ int[] a={1,4,9,6,1,9,7,8,2}; int x; int n= 1; <<<<<<<<<<<<<<<<<<<<< wondering about this String c; c= JOptionPane.showInputDialog(null, "please Enter x value"); x= Integer.parseInt(c); for (int i=0; i<a.length; … | |
Hello everybody, I'd like to implement an application of rooms and doors as follows; room has identification number and description, e.g. Art Hall. room has one or more door(s) in one direction, e.g. door 1 allows you to move from room 1 to room 2 not the way around. Each … | |
hi..i'm new in java programing .. sorry but i don't know where i should write my question.. i have this program "FTP client " with 2 errors .."illegal start of expression " and "134 error "class ,interface ,or enum expected " i checked "{} ()"...can you help me plz?[CODE] import … | |
after executing that I was expected all rgb values but the output is rgb values with negative sign and containg each value more than 6 digits please help me soon[code]int w=bufferedimage.getWidth(); int h=bufferedimage.getHeight(); int [] rgb=new int[w*h]; bufferedimage.getRGB(0,0, w, h,rgb,0,w); for(int i=0;i<rgb.length;i++) { System.out.print(rgb[i]+" "); }[/code] | |
Hello, I want to know how to write java code to retrieve content and position of an xml element using sax parser. |
The End.