35,618 Topics
![]() | |
How would I make something like a high scores function on a java applet? Like how would I record the score the person got and then access later? | |
I need to use log4j and I have already imported the .jar, and added the necessary code to my project. I get the following warnings when trying to run my program: log4j:WARN No appenders could be found for logger (multithreadsprocessor20.MultiThreader). log4j:WARN Please initialize the log4j system properly. log4j:WARN See [url]http://logging.apache.org/log4j/1.2/faq.html#noconfig[/url] … | |
I know how to se the font of a regular JTextArea, but how would I get an reference to the selected text and only select that? Here is what I have so far: [Code] setFont(new Font(font, style = Font.BOLD, size)); [/Code] this works but changes whole area [Code] textArea2.getSelectedText().setFont(new Font("sansserif",Font.BOLD, … | |
helloo, hello can you help me please i want to write to a file using bufferedwriter and bufferedreader but the problem is that i don't know how to use it i get an error please help me,hoping for your positive responds... [CODE] import java.io.*; import java.util.*; class Writefile { public … | |
hi i am trying to make a currency converter to convert British pounds, US Dollars and Euros . i have the GUI made but i wanted to make a separate class to handle the conversion of the currencys but im not sure where to start so i was wondering if … | |
/** * Class BankAccount - a simple model of a bank account * designed to illustrate the concepts of classes, objects, and methods. * * @author Man Hin Wong * * @version 2010.08.12-version */ class BankAccount { // These are the instance variables private int balance; private String accountName; // … | |
Hi, Can any one say what is the difference between the implicit and explicit? Thank you, With Regards, Prem | |
Hi i want to use mobile device bluetooth , i use this code but there is probleam with this method getDiscoveryAgent() . this error shown : [QUOTE]Null pointer java/lang/nullpointer exeption[/QUOTE] this is my code : [CODE]/* * To change this template, choose Tools | Templates * and open the template … | |
hello....sir i have to access image from mysql database using java program and display it on the window please any one can tell me solution for this problem thanks in advance | |
Before I ask the question I realize that selection of a programming language depends on the context of a problem at hand. Related to this I would like to know (if anyone) how many of you use which language for programming microcontrollers, embedded systems and even generally on PC. Here … | |
Anyone played with the jxl API before? It's a tool for read/write access to Excel spreadsheets - a little bit dodgy, but it works. I wrote a piece of code for my brother using this a few months ago, and now he's starting to see a warning message, which is … | |
I'm working on an Image editor for a class project. I am stuck trying to display the image onto the panel with a button. My action listener is working fine. I don't know if the paint component is working right. help please. Here is my code for an Image Viewer … | |
[CODE][/CODE]hello can you help me please my program will generate error it says can't find symbol Class Node please help me hoping for your positive responds... here's the error... D:\SinglyLinkedList.java:16: cannot find symbol symbol : class Node location: class SinglyLinkedList private Node head; ^ D:\SinglyLinkedList.java:17: cannot find symbol symbol : … | |
Hi all, What is the differnce between the xmpp server Vs jms.? Using jms we can perform the message transfer. Using xmpp server also we can transfer the message. Thank you, With Regards, Prem | |
i need to know about inventory management system project through java? anyone cn help me plsss??????? | |
This is my EmployeeList.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html:html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>List of Employee</title> </head> <body> <table border="1" cellpadding="1" cellspacing="1" align="center"> <tr> … | |
Hi guys, For multi dimentional arrays, i know the amount of columns- 3. But I do not know the amount of rows because each input file has a diff. no. of rows(which can go up to a few thousands). So how do I make an array out of it? Thank … | |
I'm now a mobile developer intern who is doing an RSS Reader application for J2ME. Been testing out kXML, as well as discovered the weakness of lcdui. Been trying LWUIT for a while, and it works nicely. However, to translate the lcdui to lwuit and for it to work with … | |
I have a program with arrays declared in the main function. However, when I want to use that array in my init() function, it doesn't work. May I know what must be done so that I can use my arrays in the init() function? | |
import java.util.*; class Data { int num; String name; Data(String na) { name=na; } public int hashCode() { return 5; } public boolean equals(Object o) { if(o instanceof Data && ((Data)o).name==this.name) return true; else return false; } } public class Sandeep { public static void main(String[] args) { HashMap map=new … | |
This is my EmployeeList.jsp ====================================================================== <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html:html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>List of Employee</title> </head> <body> <table border="1" cellpadding="1" cellspacing="1" align="center"> … | |
Hi all, I am trying to work out how to use the try and catch methods in Java. I am new if you havent guessed and I am wondering how I can change my code which searches for a particular user id which is inputted and when found it opens … | |
hello frd i m a final year student and want to make a major project in java.please give some ideas and topics | |
HI, I want to write a rss parser which parses the rss feeds so that I can extract the descrition part and the date and title of the feeds. I tried using the rss parser program RssParser parser = RssParserFactory.createDefault(); Rss rss = parser.parse(new URL("http://rss.ireport.com/feeds/oncnn.rss")); rss.getChildren(); Channel c=rss.getChannel(); but I … | |
I just wanted to demonstrate a quick point regarding Constructors & inheritance. Look at these two classes and think about what you might expect to see after the main method has run. Notice that ClassB is a subclass (inherits from) of ClassA. So, what do we expect the output to … | |
Is there any advantages to make web site using JAVA? I think PHP is much bettter to use. | |
This question is more from curiosity than necessity. I've been playing with the Java2D API, and I noticed a weird quirk with using Active Rendering. The Graphics 2D object doesn't appear to do anything the first time I use it. My code basically looks like this (I know it isn't … | |
I am trying to connect objective c application to Java.. I am relatively new to both.. Basically I would like Java application front-end which can call the objective - c app. I was thinking about first creating the obj c library in xcode and than wrap it in java somehow … | |
i am trying compelete my project for college i am assigned to develop a businfo map in java and being a beginner in java i am completely lost in it. i am trying to use map images to show the paths and locations as start and destination. we should be … |
The End.