36,051 Topics
![]() | |
Hi, I want to make the background of the JFRAME and image??? but everytime the background image paints over the buttons???? please help! | |
I have a JSP page and there is a button on that to search... When I focus mouse on the button ..I can see the internet explorer progress bar but when I take the mouse away from button..I can not see the progress bar... Is there anything to do in … | |
that is code to send file from pc to phon but it dont run and throw that exception java.io.IOException: Device not discovered i dont know what is the problem [CODE]try { String adr ="btgoep://000E6D80ABBE:9" ; System.out.println("addres"); ClientSession cs = (ClientSession)OBEXConnector.open(adr); System.out.println("opening"); HeaderSet hs = cs.connect(cs.createHeaderSet()); System.out.println("created header set"); byte text[] … | |
Hi guys ! Whenever I try to run an application I get the same error : [QUOTE] java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/examples/WEB-INF/classes/logging.properties read)[/QUOTE] Dont know what is wrong... Here is the full log : [QUOTE]16 juin 2008 14:11:47 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5 16 juin 2008 14:11:47 … | |
Hello again, I've been around some threads here, some interesting, some piqued my interest. Like, forgive my ignorance, but how does one run a jar file. What special is required to run such a file? All I know is winrar a jar file and you get all these coded .class … | |
Hi Everybody, As you can tell by the title, I am very new to Java. I have a html page that I need to call from java. i use Runtime.getRuntime().exec("C:/Program Files/Internet Explorer/iexplore.exe"+" help.html") ; //help.html is the required html file which is stored in the same folder. But when i … | |
Hello all very advanced programmers. I'm a amateur programmer still learning to climb the ropes. I am trying to run a certain program on Java but seem to get some errors that does not define itself any further. These are the errors I am currently getting when I compile the … | |
Hi... my mission is to locate a certain word inside a pdf file and insert an image next to this word if anyone can recommend me on some api's or examples i will be very grateful. Thanx ahead Daniel | |
Can anybody teach me how to use the java source code for loading the sound device in the program, and then we can hear what the people is say? thanks a lot for helping. I am really appreciate it.. | |
hi, in java this is a syntax for creating an object for class. hello obj=new hello(); where as in php this is the syntax. $obj = new Java("hello"); now i want to cal constructor with parameters, here the syntax for java. hello obj=new hello("key"); pls give syntax for the above … | |
Whenever I try to declare a "Regular Expression" while including symbols like "+", "-", "*", the match is done based on how those operators work. Now, when I try to use the regex API via combining those operators with backslash or \Q and \E I get the error message-- "...Illegal … | |
Hi everyone, I am new to J2ME, so I would like to get some help from you guys. I am developing an application which needs to call some C functions. Normally I would use JNI, but apparently for CLDC cellphones only KNI is available. I am willing to learn more … | |
hi all. i can't write to mysql database in jsp so please send some simple example regards bayarja. | |
Hi all I need to submit my assignment urgently. Still now I have no idea on that. anyone can help me to finish my assignment. I attached my assignment question as well as my uncompleted answer. *my programing skill is very bad. please, help me. Thank u all. this is … | |
Hi Everybody, Please help me regarding calling of any .exe like notepad,msword,etc. in JDesktopPane.That particular exe will appear in the Desktop like Internal Frame. thanks in advance.. Subroto Bhattacharjee | |
Hi there, I haven't worked in Java for a while and I want to go back to it. Can someone please recommend an IDE software that is good for Java Development. I am interested in struts. Things like autocompleters would probably be very helpful. Any responses would be greatly appreciated! … | |
I have to use two seperate classes in seperate files, one is a driver while the other is the program. It has to use an interface, toString, and have no arg default constructor and a full arg constructor. The toString has to create a formatted table of data from a … | |
Hello! We want to send an email from a jsp to the Recipient (variable: youradress) from the emailadress given in our profile (variable: myadress). There appears a error message at the command Transport.send(message). [CODE] <%@ page language="java" import="java.util.*, javax.mail.*, javax.mail.internet.*" %> <%@ page language="java" import="model.User" %> <% model.User user = … | |
I want to make a robot and programm it using java, the quetion is what exactly I need to do so like the operating system I should use (for e.g. brickos) | |
this is the oracle GUI [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class OracleGUI extends JFrame implements ActionListener { // Define constants public static final String GET_QUESTION = "I will answer any question. Let me know yours.\n" + "Type your question in the following and hit Submit."; public static … | |
hi guys well I go to my dos prompt and invoke the compiler with the javac command but I always get the following message: javac is not recongised as an internal or external command,operable program or batch file I would like to know why i am gettin this message and … | |
Hello all, I've been writing a multiple choice question version of the game Hangman. I've got it done except for stopping already asked questions from appearing again. I've got the 'asked' question numbers (the questions and answers are read in from a file into various arrays) added to a vector … | |
Hi all, I am currently revising for an exam which will cover all the basics of object-oriented programming, it was going quite well until I met Collection :) I have got two questions to which I have started writing answers to but got stuck...Could someone please have a look at … | |
Hi I want to make a weather reporting project . the requirements of project are as follows There are there sensors ie 1. Sensor for Weather 2. Sensor for Humidity 3. Sensor for rain All the data sensed by these sensors want to display on a web page where there … | |
Hi there, I'm trying to open up a text file read info from it, alter it and write back the alterations when a user clicks on the save button, but I've hit two issues:- 1) I can't open the file for write access as I don't have permissions - can … | |
Hello, I am trying to learn a few new things with the Java API and am wondering where to get started. As of late I've been interested more and more in trying to construct bots, and I thought a good first step would be to try and create a minesweeper … | |
Hello everyone, i am new to this community. I want to post my important doubt here. Right now, i am doing a JSP project, which requires the task of adding dynamic rows in a JSP page and also inserting their data in the database. Can anyone guide me on how … | |
Hi, I am writing a program where I want the user to be able to e-mail me feedback, so I have downloaded javax.mail and I'm trying to send myself an e-mail to test it out. I have Yahoo Mail Plus. Below is my code, which I tweaked from one of … | |
Hi I am in my first programming class. Programming in JAVA. I have found it frustrating yet challenging. I am in desperate need for help when I sit here for three hours and know that it is something so simple in my source code that is wrong yet so hard … | |
i think i've chosen the longest way to add the deletion onto my system, is there any other way which is more efficient ? and im wondering why only mPane.JTextFields are working, but the rest like lPane.JTextFields aren't working ? [CODE=JAVA] . . menuItemDelete = new JMenuItem(); menuItemDelete.setText("Delete"); menuItemDelete.setMnemonic(KeyEvent.VK_D); menuItemDelete.addActionListener( … | |
can i have more then one JTextArea and JTextField for one inner class (MyUndoableEditListener())? [CODE=JAVA] . . MainTabbed mPane = new MainTabbed(); . . . mPane.area.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.locField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.dateField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.ndBuddyField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.depthField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.firstBuddy.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.weightField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.timeInField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.tOutField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.startTimeField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.sTimeField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.bTimeField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.startField.getDocument().addUndoableEditListener(new … | |
currently i am facing a problem for these method. when my program copying or cutting a selected text and paste to another selected area, unexpected result, it paste the selected text to all of the fields and areas of my program. is there anyway to check current selected area or … | |
[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 = … |
The End.