36,051 Topics
![]() | |
Hi everyone, I'm having trouble inserting icons into a textpane and I'm not sure why. I'd like to set up a textpane and then be able to insert and display images in that textpane during runtime. As a test I've written the code below for a simple GUI with a … | |
Hello guys, I am working on a project that deals with a store. but here is my problem i am having problem inserting multiple record into the database instead my code is summing it up. Can anyone give me an idea on how to insert multiple record into a database. … | |
Is this possible? I'd like to add a java file in each tab of this JFrame. I've already created the files, I'd just like to show both files in one. The files I'd like to add are commented out: storageSP and calculatorEDL [CODE] import javax.swing.*; import java.awt.event.*; public class TabbedPane … | |
anybudy can explain how do i connect my weight machine to pc...to calculate the weight of the object in pc..... | |
![]() | Hello everyone, I currently have an application that reads in an entire excel file then iterates through the records from the file and queries our database for a match. If a match is found the record is ignored if a match is not found the record gets added to the … ![]() |
I'm creating a word processor similar to Microsoft Word (but much simpler). I'm having a problem with a dialog box. When a user presses the 'new document' button, it prompts the user to enter the file name, and when the user does so, he presses ok, and the file name … | |
Hi all, I've been struggling with a Swing issue for days now, maybe someone can help me :) I would like to see several icons at the left hand side of a JTree element. Is that possible? I mean i know that I have to create some tricky cell renderer … | |
suppose we know the name of textfields on a html page and we wish to write a java prog. to automatically login on website with our given predefined details. i mean sending an http request with values for login fields through a prog. and then handle the response. | |
[code=java]*/ import java.io.*; public class DriverBuggy { public static void main(String args[]) throws IOException { Buggy app; app = new Buggy(); app.appMain(); } // end of main() } // end of class Driver class Buggy { /* Instance Data Declarations */ BufferedReader stdin; // define stdin int firstVar, secondVar, thirdVar; … | |
HI all, apologies for the strange username! I have a string as follows: 13866,Stephen Moran,Stephen Moran,Killaroo,Streamstown,Westmeath,Ireland,,Moran ,2010-08-05 00:00:00,0,0,,,0,O4,Moran_013866 There are 17 place holders in the string, sometimes they will be empty,sometimes not. When I tokenise it , the blanks are being ignored and its doesn't return 17 tokens. Is there … | |
List<InputStream> pdfs = streamOfPDFFiles; List<PdfReader> readers = new ArrayList<PdfReader>(); I saw many programmers using this syntax . I didnt get it? Can anyone help me to expalin this in detail ie. <InputStream> what does this mean? and can i implement this same idea with any other code which is simpler? | |
hi i want make a table using swings and whatevet i wil enter into the table that data should be saved in database.That table should be editable and i should be able to retrive that data from the database.Please help me.I'm trying but unable to do this. | |
please help with my connection i'm getting error("exception: org.postgresql.util.PSQLException: The connection attempt failed.The connection attempt failed.") this is my code.. <%@ 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" %> <%@ page language="java" import="java.sql.*"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML … | |
HI I AM A STUDENT OF M.C.A. FIRST YEAR PLEASE SUGGEST ME ANY PROJECT WHICH IS NEVER USED BY ANYONE AND I CAN MAKE I MEAN DEVELOP IT BY MYSELF. MY EMAIL ID IS " <EMAIL SNIPPED> " please as soon as possible | |
Can anyone help me? Actually I want to lean Advance Java (J2EE), the problem is, to go further you should have two knowledge : 1. knowledge on RDBMS 2. knowledge on ODBC & JDBC however I have little bit knowledge on database, and SQL statements, after that everything is blank, … | |
hi, i have a function that return a date using this: d.ymd('-'); this return 2010-08-27 but i need other format like this: 27-08-2010 i have try d.dmy but i receive this error: d.dmy is not a function what is the correct format for receive the date is other format? thanks … | |
Hi mates, Firstly I'd like to apologize if the forum is wrong but I can't find the forum for my topic. I'm a software engineering student from Turkey and I'm trying to lead my career as best I could. A software engineer should have knowledge of any technology, C, C++, … | |
I want to display large number of searched results in my jsp page. I'm using struts framework. I stored each record in to an object of a class and added to an arraylist and I displayed it with <logic:iterate . But I want to filter results from array list when … | |
In order to run a report I found display tag is useful for sorting the fields and render the data. During implementing this, I found the following difficulties: In my JSP, the table header is defined in a separate div tag with different styles than the corresponding data in another … | |
I was wondering if there was any way to make an ApplicationMenuItem inside the message edit screen that, when selected sends the message to the selected contacts itself, bypassing the default sending program. I am fine with the menu item and have seen how to do similar things by retrieving … | |
Hi all I'm having a bit of trouble wrapping my head around exactly what hiding a class method does, can somebody try giving it to me in plain English? I'm going by the [URL="http://download.oracle.com/javase/tutorial/java/IandI/override.html"]Sun Java Tutorial[/URL] but I find the example a bit vague when it comes to the hiding. … | |
dear all, i have 2 tables. first table named std_table : [CODE] | ID_std | std_1 | std_2 | std_3 | std_4 | std_5 | | 115 | A | B | A | C | D | [/CODE] then i gave another table named cpr_table : [CODE] | ID_cpr … | |
please help with my connection i'm getting error("exception: org.postgresql.util.PSQLException: The connection attempt failed.The connection attempt failed.") this is my code.. <%@ 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" %> <%@ page language="java" import="java.sql.*"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML … | |
how does one call a windows (dos-like) command from within java? such as net stop spooler can one capture the resulting text (such as, spooler stopping, or error such and such) | |
I'm working with a java application and trying to modify this code so that it no longer prompts the user with the Dialog box to save a txt file. The user already uses the Dialog box to choose a directory in which to save the file at an early point … | |
I am quiet new to using NetBeans IDE. I have created a file menu. When the user selects an option from the menu, a window should open,or a form should be loaded. So as far as i have figured out, the event needs to be handled by a mouseClick method. … | |
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 |
The End.