35,618 Topics
![]() | |
[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, … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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() … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 / … | |
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 … | |
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.*;* … | |
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 = … | |
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 … | |
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 … | |
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. | |
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 … | |
Hi all !!! plz help me , how to open Jfreechart at client side i.e. by clicking button JFreechart Fram should pop up .. thanks , | |
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 … | |
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 … | |
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. | |
can any one tell me how jsp is loaded on to apache tomcard server????? | |
Hello all, Does anyone have a good tutorial that explains how JFrame works and how it can be implemented? | |
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 … | |
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. … |
The End.