32,199 Topics

Member Avatar for
Member Avatar for softswing

Hai Friends, What is Swingworker class? were we can use this class? what its advantage? can any one explain this....

Member Avatar for softswing
0
121
Member Avatar for cam875

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 …

Member Avatar for mellowmike
0
96
Member Avatar for JasonDoyle

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"); …

Member Avatar for JasonDoyle
0
155
Member Avatar for Phaelax

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 …

Member Avatar for ~s.o.s~
0
134
Member Avatar for dsmush

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 …

Member Avatar for javaAddict
0
495
Member Avatar for big noob

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.

Member Avatar for daslocu
0
131
Member Avatar for RichardCrickets

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 …

Member Avatar for RichardCrickets
0
102
Member Avatar for rizzo18

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 …

Member Avatar for rizzo18
0
2K
Member Avatar for emcee123

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?

Member Avatar for stevelg
0
78
Member Avatar for vishva ransika
Member Avatar for craaazy123
-1
80
Member Avatar for Phaelax

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 = …

Member Avatar for Phaelax
0
109
Member Avatar for P00dle

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 …

Member Avatar for P00dle
0
56
Member Avatar for Merosansar

I am going through the java basic. I need some simple sample programme using the concept of class and interface with description.

Member Avatar for masijade
0
57
Member Avatar for JBeginer7891

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 …

Member Avatar for JBeginer7891
0
586
Member Avatar for adcodingmaster

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

Member Avatar for ~s.o.s~
0
91
Member Avatar for lloydsbackyard

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 …

Member Avatar for vjmir
0
89
Member Avatar for sree22_happy

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 …

0
118
Member Avatar for devnar

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 …

Member Avatar for devnar
0
957
Member Avatar for Clawsy

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 …

Member Avatar for Phaelax
0
153
Member Avatar for beanboy

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 …

Member Avatar for Phaelax
0
2K
Member Avatar for ucas

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 …

Member Avatar for Phaelax
0
88
Member Avatar for skugpezz

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 …

0
43
Member Avatar for SpaceMarine542

"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] …

Member Avatar for maye13
0
112
Member Avatar for MarinaNimmons

"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 …

0
70
Member Avatar for waqasgondal

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

Member Avatar for Ezzaral
-1
48
Member Avatar for girl.java

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; …

Member Avatar for JamesCherrill
0
105
Member Avatar for algo_man

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 …

Member Avatar for JamesCherrill
0
107
Member Avatar for leliana

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 …

Member Avatar for majestic0110
0
151
Member Avatar for touch me not

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]

Member Avatar for JamesCherrill
0
71
Member Avatar for thandarucsy

Hello, I want to know how to write java code to retrieve content and position of an xml element using sax parser.

Member Avatar for servicecycle09
0
126

The End.