35,618 Topics

Member Avatar for
Member Avatar for beelzibub

[ICODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author beelzibub */ import java.awt.*; import java.awt.event.*; import javax.swing.*; class ChessBoard extends JFrame implements MouseListener, MouseMotionListener { GridLayout Board = new GridLayout(8, 8); GridChessBoard brd; int xMove, yMove, …

Member Avatar for beelzibub
0
147
Member Avatar for deineMutti

Hello Java powers that be, I've implemented a JTable that I can add/delete rows of information to/from, but I can't actually see the changes until I do something stupid like resize the columns. I currently use a "fireTableCellUpdated(row, col);" doo-hicky in my AbstractTableModel(whenever data is changed) that I thought would …

Member Avatar for woo37830
0
16K
Member Avatar for suriname0

Hello! I have a little problem. I am a relatively new Java learner, and I just finished a little project for a friend. I use an IDE, called JCreator, that solves basically all of my needs without ever having to touch the command line. Since all the coding I've done …

Member Avatar for suriname0
0
133
Member Avatar for parthiban

Hi all, I have searched about difference between KeyPressed and KeyTyped Events but still I'm not clear about that . One thing I have found is Keypressed is triggered first than KeyTyped . Please clarify me when these are triggered exactly . Which is appropriate to use for which purpose …

Member Avatar for javaAddict
0
425
Member Avatar for Ghosh

I am new to JSP. so begin with, I decided to go slow. Right now I am just trying to get user input and print it back using Netbean. Here is the code which I made. Can you please tell me why this is not printing? [ICODE]package newpackage; import java.io.IOException; …

Member Avatar for masijade
0
66
Member Avatar for abhishek23

hi guys i just installled java from [url]http://www.java.com/en/download/help/download_error_codes.xml[/url] i have installed the java succesfully and now i want to write some programs in java jst to learn the language but i dont know if there is a compiler with java also i mean as there is a borland c++ compiler …

Member Avatar for jasimp
0
121
Member Avatar for CK01

Hi, I was wondering if anyone could help me. I'm trying to find 2 unicodes so I can display the join ('bow-tie')and semi-join (like half a bow tie!) operators in java (used in relational algebra for databases). Anything I find on Google doesn't work (I just get a square!) I've …

Member Avatar for CK01
0
106
Member Avatar for Software guy

hi , i am tryin to put all the upper case alphabets in an array list and , then i want it to print on screen , but for some particular reason i am getting no result but a strange output. here is the code and result: [code] void buildAlphabet() …

Member Avatar for Ezzaral
0
129
Member Avatar for cerebellum

My webapp has been running complete fine with Tomcat 5.0.x. Now, I just installed Tomcat 5.5.12 out of the box and deployed the same web app, and I got blank pages for jsp pages. To test it, I created 2 files named junk.html and junk.jsp file (the "Hello world" kind …

0
54
Member Avatar for DWFENNEL

I have three select lists that are being populated when a page is loaded, but the load time is a little slow. I was wondering, would it be quicker to build the lists by calling SQL each time the page is loaded, or store the results in an Array or …

Member Avatar for DWFENNEL
0
85
Member Avatar for francDeveloper

Hi, I am really new to web development, esp with JSP. I have the following case: 1. I have an XML file in my web-server name Juliet located in /pub/dca/bogus 2. I need to retrieve that XML file using URL in my JSP and return it as raw XML that …

Member Avatar for jwenting
0
63
Member Avatar for nelson13

I'm writing a program were I have to give the user the option of starting again.........so I ask 'Would you like to add more votes (y/n)?' then I scan for the answer using the line : 'another = scan.nextLine();' The program compiles ok but when i run it. the program …

Member Avatar for Ezzaral
0
85
Member Avatar for ChuksPierr

I understand that i'm mingling with the gurus of this language. I'm into computer hardware and I want to start programming too(you know no knowledge is lost)I've done a little bit of C and C++, I'm new in Java programming and i want someone to guide me through in this, …

Member Avatar for Ezzaral
0
144
Member Avatar for ajithraj

Hello... I need to add a special character to a string as follows.. String ok = "I am the man"+specialChar; However, when I print "ok" later,without taking substring, I just want to see "I am the man " with the special character but will be invisible and will have just …

Member Avatar for javaAddict
0
110
Member Avatar for guravharsha

Dear sir. My queries is: i have project folder contain directory like sect-1' section-2,and particular directory contain relative jsp pages, how can i deploy all jsp pages at time so that my hole project will be compiled? project folder structure is like as: project folder\index.jsp,home.jsp,validuser.jsp project folder\section-1\one.jsp,two.jsp,three.jsp project folder\section-2\one.jsp,two.jsp,three.jsp / …

Member Avatar for peter_budo
0
787
Member Avatar for madhavipoudala

please help me. I need help from you all. I enable to excute the servlet program . the deployment process is also correct , i am doing with the tomcat server, i had set the class path also. the compliation of the java file is also complied, only while excuting …

Member Avatar for peter_budo
0
133
Member Avatar for Ghosh

Hi I am making a web page where the user will enter a number such as "010383" and page should download a file and print it. I have made the html page and the servlet. can you please show me where i have made mistake? CgSkew.java [ICODE]package cgSkewPackage; import java.io.*;* …

Member Avatar for masijade
0
103
Member Avatar for cocotugo

ok im trying to make a program for solving square equations by the general formula but for some reason i cannot get it to solve the equation so if anyone can help me this is my code: va= Integer.parseInt(a.getText()); vb= Integer.parseInt(b.getText()); vc= Integer.parseInt(c.getText()); vac=(4*va*vc); vbc=(2*vb*vb); vac2= (2*va); vb2=(-1*vb); raiz = …

Member Avatar for cocotugo
0
95
Member Avatar for Software guy

Hi, i have a problem here , i have made a class which has three methods , first method is to get size of the array and assign a random number to every element of array. Second method is to just print the whole array , while the last method …

Member Avatar for Software guy
0
152
Member Avatar for Futbol10

Hi sorry about asking so many questions.....and yes i have been searching on the internet, but anyways i am getting to start checking the array words with its chars and whatnot, but i dont know if will work i am confused where to put the array of words i have …

Member Avatar for Futbol10
0
114
Member Avatar for shobhit123

I would appreciate if anybody can explain me MVC in swings. I have heard that each compnent has respective model class but unable to relate it with MVC. Kindly explain.

Member Avatar for shobhit123
0
50
Member Avatar for Tareq85

i have this design internet | Router(Suse) ---- Content-Filter Server | LAN am using iptables to redirect client httprequests from Port 80 to my own program's port that is writen (in java) on the router now in my code i want to send ( redirect ) all client http requests …

Member Avatar for jwenting
0
128
Member Avatar for sunny9

Hi all !!! plz help me , how to open Jfreechart at client side i.e. by clicking button JFreechart Fram should pop up .. thanks ,

Member Avatar for jwenting
0
22
Member Avatar for warrior16

Hi, how would this work? Color circleColor = Color.yellow; JOptionPane.showMessageDialog(null, "The color of the circle is "+circleColor); Doing this prints out the values of red green and blue that make what ever color the variable is, like it would show this: java.awt.Color[r=0,g=0,b=0], exept for yellow. This is just an example …

Member Avatar for Alex Edwards
0
121
Member Avatar for C41R0

after i added in my JTextArea, everything seem mess up, their position have already run away, whats going on ? [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.event.*; import javax.swing.border.*; public class MainTabbed { JLabel locationLabel; JLabel divingTypeLabel; JLabel dateLabel; JLabel maxDepthLabel; JLabel averageDepthLabel; JLabel fBuddyLabel; JLabel sBuddyLabel; JLabel …

Member Avatar for C41R0
0
305
Member Avatar for Jishnu

Hello, I'm getting a compile-time error in jdk1.2.1 which says "Identifier expected" and points to this line in the code: [CODE]Vector<Fish> fishes = new Vector<Fish>();[/CODE] Aren't vectors supported in jdk1.2.1? I'm unable to catch the problem.

Member Avatar for Jishnu
0
100
Member Avatar for sandeep soni
Member Avatar for jwenting
0
97
Member Avatar for orcboyx

Hello all, Does anyone have a good tutorial that explains how JFrame works and how it can be implemented?

Member Avatar for eranga262154
0
72
Member Avatar for ray40o5

everything is fine on my computer except all java windown in internet explorer will not work. On many websites i cannot click on links. No videos will play...for example youtube videos. i need to know how to fix just this problem, or just to completly restore windows to its original …

Member Avatar for itdupuis
0
76
Member Avatar for AppleTastic

Hi, I'm trying to develop a program that will take one HTML file and from there open all child windows, copy the text on that HTML page and put it all into a new text file. I would do this manually but I have 2200 HTML pages to go through. …

Member Avatar for Ezzaral
0
80

The End.