35,618 Topics

Member Avatar for
Member Avatar for ronnieaka

the answer to this i found on the web was this: The AWT event dispatcher thread is not a daemon thread. You must explicitly call System.exit to terminate the JVM. and what i understand of it is that the thread which is terminated when we close a JFrame or Applet …

Member Avatar for JamesCherrill
0
563
Member Avatar for scottdurica

Hi all, Im trying to create and write to a file to create a "list" type document that I can convert to .pdf and print out later on. Below is an example of what I'm doing. [I]out[/I] is my file and list in a string array that holds the answers …

Member Avatar for scottdurica
0
206
Member Avatar for anandv1986

Dear Folks, This is anand, i m new to Tomcat5.5, i have given my directory structure i think nothing wrong with this but it is showing some error. Webapps I anand I WEB-INF, helloworld.jsp I classes,web.xml If i try to run my simple helloworld jsp program it is showing error …

Member Avatar for Qamar_DW
0
147
Member Avatar for warlord902

I have a private message frame of a chat application in which i used a JEditorPane on top of JScrollPane which is used as a conversation pane where both my messages and the messages i receive will be displayed. For this I get the previous text from JEditorPane and append …

Member Avatar for JamesCherrill
0
224
Member Avatar for matrixcool

Hi guys, I'm trying to write a recursive method that checks if the first elements of an array of integers are sorted in ascending order but it didn't work for me !! [CODE] public static Boolean isSorted(int [] a, int n){} [/CODE] I tried to copy elements from array a …

Member Avatar for JamesCherrill
0
190
Member Avatar for VichuTheWizard

Hi, I am currently doing a project on remote object communication between Flex 4.1 SDK and Java using Flerry API.I need a Java program that can capture the user keystrokes while the user enter's text in the action-script text-area. i.e I need Java program that captures the keystrokes as user …

Member Avatar for VichuTheWizard
0
197
Member Avatar for newbie14

Dear All, I have a java application which link to db on another computer on the local lan. The problem I have install jdk_1.6_21 without any problem. Then I have paste mysql-connector-java-5.1.14-bin.jar in /usr/java/jdk1.6.0_21/jre/lib/ext. When I compile my program has no problem when I try to run I get this …

Member Avatar for newbie14
0
254
Member Avatar for RossR

Hi all, I am stucked at this problem - net to let user set string as byte eg. "0xFF", And parse it to byte. Problem is, that using... [CODE] byte byteVar = (byte) "0xFF"; [/CODE] ...is incompatible. Nice page about this is [URL="http://www.herongyang.com/Java/Byte-Data-Type-Implicit-Casting.html"]there[/URL]. Any idea how solve this? Thx for …

Member Avatar for javinpaul
0
236
Member Avatar for justin3085

Ok, I have the ever popular Inventory Program in a JAVA class going on. I have successfully created a new class to hold the GUI information. I have the window sized and the title of the window placed. When I run the program the GUI shows up. Next I need …

Member Avatar for Akill10
0
104
Member Avatar for matrixcool

Hi, I'm trying to use the method: Code: [CODE]public static int[] copyOfRange(int[] original, int from, int to);[/CODE] to copy specified values to another array here is my code: [CODE]// I have an array a of integers but the error in this line int [] b = Arrays.copyOfRange(a,0,n);[/CODE] but it gave …

Member Avatar for Akill10
0
126
Member Avatar for crazy8

So i am sort of stuck with this one, due to the error when compiling, noted in the title. (for uni by the way) But basically the idea is that if your aged between 5 and 18 you get the discount. If your over 18 and below 60 and you …

Member Avatar for JamesCherrill
0
106
Member Avatar for Statoeo

Hello, I have a program that was executed appropriately via windows command line, however when i separated the classes into different packages and tried to compile i got some errors. (No problems executing it via Eclipse. Compilation via command line is the problem) MyFrame.java:19: package Control does not exist import …

Member Avatar for Statoeo
0
118
Member Avatar for deepakjainmit

how to configure junit application context file with struts........? it is not finding sessionfactory method..........

Member Avatar for ~s.o.s~
0
83
Member Avatar for skekre88

i got a such type of error in junit+struts2 +spring org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sessionFactory' is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:521) at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1068) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075) at net.action.TestNew.setUp(TestNew.java:45) at junit.framework.TestCase.runBare(TestCase.java:132) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at …

Member Avatar for ~s.o.s~
0
296
Member Avatar for salmanrauf
Member Avatar for JamesCherrill
0
136
Member Avatar for mani_1991

hai, is it possible to loading of tabs in jtabedpane dyanamically in java.. that means i have frame that consinting of one tabbedpane.. in that i have 10 tabs and in each tab consting of another tabbedpane and in that each tabbedpane has 4 tabs and each tab consisting buttons …

Member Avatar for vjcagay
0
167
Member Avatar for WolfShield

Hey everyone, I'm using the NetBeans WYSIWYG, the part where you drag and drop to create the windows and buttons ect. What I am trying to do is open a tutorial for my program from a menu item in the 'Help' menu. My problem is HOW to open a window …

Member Avatar for roxin_phoenix
0
149
Member Avatar for saics

Any one help regarding this code... i used <%@include file=" "%> directive code..the code is executing well...but this include code nt working i.e it is nt executing..but simple code with include working well plz plz any one provide me the solution very soon [code=JSP]<%@ page import="java.sql.*" %> <%@ page import="java.io.*" …

Member Avatar for peter_budo
0
167
Member Avatar for Eric Cute

I have a bit of a problem here. The situation. 1. I have created a Dynamic Web Project. (good) 2. I have created a logon JSP (good) 3. I have created a css (good) 4. I have created a JS file (good) JSP, CSS are located in WebContent/WEB-INF/ JS located …

Member Avatar for peter_budo
0
888
Member Avatar for brynFlew

Hello, and thank you for youre time, I have a problem with my jsp application, when i try to get the values from the html form on the jsp page process.jsp, it sets the values of each element but then does not return them to the java page. It keeps …

Member Avatar for peter_budo
0
241
Member Avatar for death_oclock

I just wrote a program that plays various drum sounds when certain keys are pressed. It works for the most part but, when two keys are pressed at the same time, only one sound plays. Both key presses are received, however. I am using the Clip class which allegedly supports …

0
53
Member Avatar for musikluver4

Quick question. I have text in a JFormattedTextField, I clear it with a clear button to make it setText(""); and heres the problem: When I go back in the field, and just to test it, I just tab out or mouse click out of it without typing anything in it, …

Member Avatar for musikluver4
0
62
Member Avatar for skitband

anyone can give me a code for this java applets program TY [url]http://tinypic.com/r/33nd9ox/7[/url]

Member Avatar for pbl
0
67
Member Avatar for Neversleepin

Hi, i'm trying to understand how actionPerformed is working. I'd like to know how to add more than one action in actionPerformed method. Here is an example of my code. I have two button b and c and the button b must open the gmail.com page. // this first action …

Member Avatar for Neversleepin
0
229
Member Avatar for hauda67

I am creating a desktop application that will also include a calculator, similar in function to the calculator of the Microsoft Windows OS. I require some assistance in implementing the memory capability such that the user can store a number, recall the number to be used in a calculation or …

Member Avatar for Ezzaral
0
214
Member Avatar for Statoeo

Hello, I have a program that displays a frame that uses a canvas to display few rectangles and some images. While executing the program with Eclipse IDE everything seems to work appropriately, when I compile and execute the program using windows command line the images are not displayed. With eclipse, …

Member Avatar for Statoeo
0
278
Member Avatar for sumeetdesaeee

I want to retrieve the autogenerated primary key after inserting a record in database.I am using IBatis for my database connectivity. Please review my xml code and tell whether it is correct or not. Also, please tell me how can I retrive that value in my java code.. [code=xml] <insert …

0
53
Member Avatar for Rona25
Member Avatar for VichuTheWizard
-1
122
Member Avatar for emint

Hi how can i execute a statement if only radio button is checked and Jbutton is click? i know how to use them Individually. i try to use like this [code] public void actionPerformed(ActionEvent event) { Object src = event.getSource(); if (src==radio1 && src == buttonclick) JOptionPane.showMessageDialog(null,"Raido1 is checked"); }[/code] …

Member Avatar for jsaddam709
0
209
Member Avatar for almefab

Hi guys, I am fairly new to JAVA and currently I am trying to do a couple of pre-set graphs. My first task is to create a graph of y=x^2. The code below is what i have come up till now. I am sure that i need help in the …

Member Avatar for almefab
0
165

The End.