36,051 Topics

Member Avatar for
Member Avatar for Abinaya Infy

Hi all, I have two questions. 1) How to refresh a page in jsp even if the javascript is not supported by the browser or if it is disabled? 2) How to get the path of the window in js? Thanks in advance.

Member Avatar for Shanti C
0
122
Member Avatar for misszeze

hello I am developing a java application, in my application i have to move data with large size from one object to another and i don't know the perfect way to do it so i can save memory and increase the processing speed because performance is very important in my …

Member Avatar for JamesCherrill
0
90
Member Avatar for daudiam

I can't understand the following statement [QUOTE]The Hotspot VM now implements Thread.yield() using the Windows SwitchToThread() API call. This call makes the current thread give up its current timeslice, but not its entire quantum.[/QUOTE] given at [URL="http://www.javamex.com/tutorials/threads/yield.shtml"]http://www.javamex.com/tutorials/threads/yield.shtml[/URL] I understand that after a thread yields, other threads get a chance to …

Member Avatar for ~s.o.s~
0
694
Member Avatar for varunsara
Member Avatar for Web_Sailor

Hi... I am creating an HTML Table in my JSP page taking values from text file. Now the problem comes when I read the file again to update the Table content. In this case I have to refresh my whole page to see updated Table. :icon_cry: How can I refresh …

Member Avatar for Shanti C
0
1K
Member Avatar for mag12203

I have been able to output a palindrome but now it does so even if it is not a palindrome. Thanks you in advance for any help. ;) [CODE]import java.util.*; public class ec2 { static Scanner kb = new Scanner(System.in); public static void main(String[] args) { String word = " …

Member Avatar for GuruMS
0
135
Member Avatar for warlord902

So my problem is that, i have a text area with 3 rows. Its a part of a chat application which receives text from a user. I want to send the text and clear the text area as soon as the user presses the enter key. Now the problem is …

Member Avatar for warlord902
0
1K
Member Avatar for Akill10

Hi, I've started to learn about threads in java. I'm trying to make this simple animation of a rectangle. Where am I going wrong? I was under the impression that if a class implements Runnable, when it is executed, it looks for the start method, which in turn starts the …

Member Avatar for Akill10
0
170
Member Avatar for superirale

I want to Develop a 2d rpg game with java,how do i start and what do i need to know? I have been using java for two years.my team consists of two programmers and one graphic artists

0
129
Member Avatar for atinus cool
Member Avatar for masijade
0
106
Member Avatar for rational_

I want to join 2 dots of the same colour that is 2 red dots or 2 blue dots ....but after applying my code...when i run the program it does not join the 2 same colour dots...even though it does not display any error. So basically i am trying to …

Member Avatar for quuba
0
185
Member Avatar for doom2100

hello all my problem is a confusion on the second problem here i managed to solve the first problem and made the program i hope its correct as u see.. First problem Three memory locations A, B, and C contain numbers. Write down the algorithm for finding and printing the …

Member Avatar for doom2100
0
136
Member Avatar for jpaterson2525

I need to port an application i wrote in MS csharp to java. I used the WebBrowser control to deal with complex html and javascript. Whats the simplest solution for java? (im using swing components)

0
61
Member Avatar for arshi9464

when we write [javac abc.java] a bytecode is generated. AND THE BYTECODE CONTAINS INSTRUCTIONS FOR THE JVM and each instruction is 1 byte in length. NOW my question is where does the interpreter comes into action and what happens after the bytecode is generated. I was told that interpreter produces …

Member Avatar for ishaanarora
0
114
Member Avatar for Ralphael
Member Avatar for JamesCherrill
0
144
Member Avatar for LianaN

Hi! How could I change custom cursor size? I was playing with Point(a,b), however the cursor is always 32x32 and it looks horribly. Below you can see my code snippet. Thanks! [CODE] Toolkit toolkit = Toolkit.getDefaultToolkit(); Image imageCrossCursor = toolkit.getImage(BeadToolbarColor.class.getResource("/icons/cross_cursor.png")); cross_cursor = toolkit.createCustomCursor(imageCrossCursor, new Point(0,0), "Cross cursor"); panel.setCursor(cross_cursor); [/CODE]

Member Avatar for LianaN
0
1K
Member Avatar for mag12203

Can someone help me figue out why I keep getting an erorr that I am missing a return statement. [CODE] import java.util.*; public class ec1 { static Scanner kb = new Scanner(System.in); public static void main(String[] args) { String word = " "; String s = " "; char letter; …

Member Avatar for mag12203
1
160
Member Avatar for fenerista

How can I add a clickable url in a JTextPane like this [url]http://www.google.com[/url] or If I ask other way, how can I make the links in JTextPane clickable ? When the user click or double click this link the default browser will open the link that is clicked. I have …

Member Avatar for fenerista
0
3K
Member Avatar for gunbuster363

What is java and the whole bunch of things. I only know how to use eclipse to write java project, probably java 1.4. Can someone give me a picture about the whole bunch of java things such as jsp servlet spring struts hibernate J2EE glassfish J2EE 5 J2EE 6 EJB …

Member Avatar for stultuske
0
113
Member Avatar for aaafan

I need to reinstall Java RE but when I try to uninstall it does not show in the Control Panel. I have downloaded the latest version and when I try to install it says there is a version already there 'would I like to reinstall'. The Windows Installer pops up …

Member Avatar for aaafan
0
981
Member Avatar for elcliff

Hilan International Bank decided to have a salary plan for its employees. In the new Policy, bonus is based on the fact that one is a senior staff or junior staff. You have been called in as a programmer to develop a software to meet this policy’s requirement: (a.) Create …

Member Avatar for masijade
0
761
Member Avatar for 3vilwyatt

Hi, I have a requirement to create instant messaging via Java that can be accessed through the web browser and can communicate with MSN, ICQ, Yahoo, GTalk and AIM. Can you advise which is the best open source IM that I can look at to get things started? Thanks for …

0
80
Member Avatar for jpaterson2525

I need to port an application i wrote in MS csharp to java. I used the WebBrowser control to deal with complex html and javascript. Whats the simplest solution for java? (im using swing components)

0
58
Member Avatar for rajeshbv

My question is: ** (De Morgans law) , De Morgans law can sometimes make it more convinient for us to express a logical ex-pression. These laws state that the ex-pression ! (condition 1 && condition 2) is logically equivalent to the ex-pression (!condition 1 || ! condition 2). Also the …

Member Avatar for nHXenos
-1
162
Member Avatar for jlovesfishiee

Hi, I know that the get() method returns the element at the specified position in the list, so does that mean that for this particular sentence of code: [CODE] HtmlInput inputMsgKey = (HtmlInput) getSendNotificationForm.getElementsByAttribute("input", "name", "msgKey").get(0);[/CODE] get(0); will return the "input" element? Thanks.

Member Avatar for jlovesfishiee
0
80
Member Avatar for hashim11

i really need help... i dont know where the problem... the line error on that part>>`class reserveform extends JFrame implements {` import java.awt.Dimens; import java.awt.*; import javax.swing.*; import java.util.List; import java.util.LinkedList; import java.util.Iterator; import java.util.ListIterator; import java.util.Collections; import java.awt.event.*; class reserveform extends JFrame implements { // operation interface JPanel operation; …

Member Avatar for quuba
0
146
Member Avatar for kdmuk10

I have been teaching myself Java programming for few months now. Now i am looking for some materials which can help me develop my programming technics. It will also be useful materials to deepen my understanding to the java programming. I would appreciate to get some advise.

Member Avatar for kdmuk10
0
174
Member Avatar for Viper588

Hey guys im very new to java and am having some difficulty solveing a problem for my class. I have an array of 10 numbers and have to write a method that will eliminate any duplicates in the array and return that array. Iv been toying with different thing for …

Member Avatar for Viper588
0
262
Member Avatar for Ralphael

I want to create a digital clock in Java can any one help me out i am having problems updating the second variable

Member Avatar for Slimmy
0
93
Member Avatar for softswing

Hai friends, Am using java swing, is there any juint test for swing gui application, kindly help me in this problem.Thanks.

Member Avatar for lookof2day
0
97
Member Avatar for nitins60

[CODE] import java.io.*; import java.io.IOException; public class ReadWriteFile{ static File f1 = new File("C:\\source.txt"); static File f2 = new File("C:\\dest.txt"); public String readFile() throws IOException { String msg = ""; FileReader fr = new FileReader(f1); BufferedReader br = new BufferedReader(fr); msg = br.readLine(); System.out.println(msg); fr.close(); return msg; } public void …

Member Avatar for masijade
0
167
Member Avatar for Akill10

Hey, I was wondering if somebody could test this out for me? I need to know if it acts the same on other pcs as it does on mine. The game seems to randomly speed up/slow down. Can you test if it does the same? [url]http://www.filefront.com/17673747/BoundingBox.jar[/url] It's a simple space …

Member Avatar for Akill10
0
127
Member Avatar for whong09

I was fooling around with some Date classes when I came upon the following anomaly. [CODE=JAVA] import java.text.DateFormat; import java.text.ParseException; public class Class { public static void main(String[] args) { DateFormat df = DateFormat.getInstance(); try { System.out.println(df.parse("12/20/10 1:40 AM")); } catch(ParseException pe) { pe.printStackTrace(); } } } [/CODE] This compiles …

Member Avatar for whong09
0
119
Member Avatar for amitbhanot

Hi could someone tell me how to write a EJB module in NetBeans IDE/ MyEclipse. i am using NetBeans 6.9.1. not able to figure out what type of project to select from the choices? i am trying to write a Remote interface, a Home interface, Session Bean, ejb-jar and a …

0
63
Member Avatar for nutihu

/*trying to set the textfield to null when i input the numbers but the zero still remains after i start typing.How to i get it to disapear when i start typing */ package Vectors; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.*; import java.util.*; import javax.swing.*; …

Member Avatar for ajst
0
3K
Member Avatar for eman 22

I need some one explain to me marker interface and give to me an example in java Thanks,

Member Avatar for JamesCherrill
0
94
Member Avatar for tohobaby

If i want to put tis sentece "No Such Data." where did i nit to implement it into if there was no data found? [CODE]import java.io.*; import java.util.*; class Book { static Map<String, String> phone = new HashMap<String, String>(); public static void main(String args [])throws Exception{ searchBook(); int option; do{ …

0
72
Member Avatar for himmat.m4

Hi, I making project in struts2 so please tell me how can send some variable from action class to jsp and how those variable get on jsp page. Thanx in advance.

0
43
Member Avatar for Kuroshi

Lets say I have a JPanel and an object called ball inside of it, instead of creating gets so the JPanel can draw the ball image I would like the ball object to draw itself on the JPanel. Is it possible? Thanks :D.

Member Avatar for Kuroshi
0
591
Member Avatar for fabricetoussain

for home work assignment we have to Implement a class Product. A product has a name and a price, for example new Product("Toaster", 29.95). Supply methods getName, getPrice, and reducePrice. Supply a program ProductPrinter that makes two products, prints the name and price, reduces their prices by $5.00, and then …

Member Avatar for Eric Cute
0
643
Member Avatar for Akill10

First of all, Is it actually possible for a keyboard to be able to accept input from multiple separate keys at the same time? For instance, If I was to make a simple game like pong, and set an up and down key for each player, could both players press …

Member Avatar for Akill10
0
286
Member Avatar for num90
Member Avatar for pbl
0
82
Member Avatar for jonicse037
Member Avatar for pbl
0
50
Member Avatar for arshi9464

It is said that JAVA is very safe, as the JRE is allocated a dedicated space in the RAM all of the time. Therefore, no virus can piggy back............ Can anybody explain this concept of JRE getting space in RAM and HOW MUCH SPACE IS IT ALLOCATED IN RAM? THANK …

Member Avatar for pbl
0
47
Member Avatar for newbie14

Dear All, I have java listener which keep reading for incoming data to the particular port. Most of the times it works fine only at times it gets too many open files error. Below is my codes what could be wrong? Thank you. [CODE]public static void main(String[] args) { try …

Member Avatar for newbie14
1
4K
Member Avatar for bords

good day everyone... i would like to make a project using barcode reader... can somebody explain me how the the data from the barcode reader can be retrieved..? does the barcode reader keeps on reading data, then you are just going to break the process thru your program codes...? plz …

0
71
Member Avatar for gedas

hey guys, im creating web service where i have one method in the web server that should be returning me string array. the problem is when i use "design view" to add the operation(method) to the server it does not allow me to chose string array as a return type. …

Member Avatar for gedas
0
245
Member Avatar for neemo6

Im looking into getting these certifications. I was just wondering how they are looked at within the programming community/ job markets? Is it something worth looking into or is it more of a converstational/bragging piece?

Member Avatar for ~s.o.s~
0
87
Member Avatar for kimmie6067

Hello new here, I couldn't find where this belonged. It's really hard with dail-up my satillite broke and couldn't afford to get it fixed right now so.......why can't I download Java and Adobe? I just bought this new computer, it's a Dell Inspiron 580s. This is the error code I …

Member Avatar for SgtMe
0
225
Member Avatar for eyndyel

I'm currently trying to make a mini dictionary. To do it i need to learn how to sort strings in alphabetical order. Can anyone tell me or give me a hint as to how am i going to sort the words in alphabetical order.

Member Avatar for jon.kiparsky
0
177

The End.