32,204 Topics

Member Avatar for
Member Avatar for suncica2222

I have button and <input type="button" onclick="test();" value="dugme"/> [B]wont call test() [/B] with alert(bla bla) directly works,but wont call my functions why???????????????? here's the complete code [CODE]<html> <head> <title>moje vezbanje</title> </head> <body onload="alert('sdfsfd')"> <script type="text/javascript"> //alert("jhgfgh"); function klasa() { var nazivLinka = document.getElementById("prvo").value; var url = document.getElementById("drugo").value; //alert(nazivLinka); //druga.createNode(input type="text" …

Member Avatar for d5e5
0
167
Member Avatar for aripaka

hi, can anybody please help me understand the difference between java runtime and java virtual machine?

Member Avatar for thebody
0
194
Member Avatar for sukruth

Hi Everyone, Can u please guide me how do i replace the string String a="FirstName & LAstName [abc]"; by String b="FirstName, LAstName [abc]"; String Result="<aaaa> FirstName & LAstName [abc] </bbb>" String Result=Result.replaceAll(a,b); The above two lines are not working coz of square brackets in the String. Can u please provide …

Member Avatar for Ezzaral
0
74
Member Avatar for ku95

[B]Connect4View[/B] [CODE]import java.awt.*; import java.awt.geom.*; import javax.swing.*; import java.awt.event.MouseListener; import java.awt.event.MouseEvent; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JButton; public class Connect4View extends JFrame { DrawPanel canvas; Connect4Model model; ControlPanel myControlPanel, JRadioButton; public static void main(String[] args) { Connect4View w = new Connect4View(); w.setVisible(true); } public Connect4View() { setTitle("Connect4 solution"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(500,220); …

Member Avatar for quuba
0
103
Member Avatar for AnarChYm

Hi, I am a Maltese student currently working on my dissertation which focuses on J2ME Wireless SOAP protocol. Since in my country i.e. Malta we don’t have professional mobile developers I had to turn myself to online questionnaires for my research methodology those of you who has done a thesis …

Member Avatar for AnarChYm
0
119
Member Avatar for mgern26

ok so i need a code that can read a list of random numbers from a note pad and then sort them, i have it set that it reads the notepad that it is supposed to but how do i make it sort // this is what the notepad file …

Member Avatar for javaAddict
0
99
Member Avatar for beforetheyknew

Hi guys, just looking for a bit of help. I've fallen victim to a particularly bad teacher with concurrency and now i have an exam in 2 weeks. I've been relying on online tutorials but the vast majority of it still escapes me. Can i ask what mutex is ? …

Member Avatar for beforetheyknew
0
83
Member Avatar for helpmepassclass

Okay i posted a question like a day ago and didn't get no response, I did however figure out the problem. The problem I am having now with is the fact that it finds the numbers that i want it to but it also adds a zero which is in …

Member Avatar for javaAddict
0
114
Member Avatar for kdott

i have a program that requires that I load info from a text file and in the end, make an arena out of it. The text file is in the following format: <number of rows in body> <number of cols in body> <body that is rows*cols big> ex: 15 15 …

Member Avatar for javaAddict
0
4K
Member Avatar for vipingoel

hello, i am making a project on search engine but i want to search link from database and i dont know how to make it can you help me?

Member Avatar for jwenting
-2
90
Member Avatar for ku95

[CODE]import java.awt.*; import java.awt.geom.*; import javax.swing.*; import java.awt.event.MouseListener; import java.awt.event.MouseEvent; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JButton; public class Connect4View extends JFrame { DrawPanel canvas; Connect4Model model; ControlPanel myControlPanel, JRadioButton; public static void main(String[] args) { Connect4View w = new Connect4View(); w.setVisible(true); } public Connect4View() { setTitle("Connect4 solution"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(500,220); setLocation(300,300); …

0
48
Member Avatar for charlieruns

My project was already due, and incomplete but I would still like to better understand a few things. I have three classes. A Photo Class, PhotoAlbum Class, and a CommandLineMenu class. Each photo has a subject, location, date, and path. the PhotoAlbum is an array of different photo objects. I …

Member Avatar for javaAddict
0
113
Member Avatar for debest24

My project is digital attendance register for teachers. I wanted to display attendance onto the table datas of my jsp page. It will be fetched from a database and displayed. The requirement is to save them in a bean and pass that bean through hashmaps. And then display the attendance …

0
40
Member Avatar for mallikarjun_sg

Hello, I need a pattern for the following use cases: I am using Java 1. [B]var so = nokia.device.load('abc','abc');[/B] 2. [B]var so = nokia.device.load("abc","abc");[/B] 3. [B]var so = nokia.device.load("abc");[/B] 4. [B]var so = nokia.device.load('abc');[/B] // 5. [B][I]var so = nokia.device.load('abc'); (Line is commentted)[/I][/B] /* function init() { if (window.menu) { …

Member Avatar for mallikarjun_sg
0
68
Member Avatar for owensking

Hi, please i need help with this code: public void addCompetitor(String firstName, String lastName) { // TODO Implement this method } and this: public void deleteCompetitor(String firstName, String familyName) { // TODO Implement this method }

Member Avatar for jwenting
0
86
Member Avatar for k2k

This is a MenuBar class which is supposed to assemble a Menu bar.. basically i have some JMenus which contains some JMenu items here... and add all the JMenus to this class which is the bar (sorry if this is confusing) i am trying to write a public method to …

Member Avatar for k2k
0
126
Member Avatar for goofy_chick

Another JTable question I am trying to resize the widths of the columns in a JTable. At present two of my column headings do not fit and the names trail off with ... I would need to resize them when the program is running to see the full column header …

Member Avatar for SasseMan
0
187
Member Avatar for becdudek

Hey, for an assignment i am meant to write a function called delete as part of my ListLinked ADT, this is easy enough and here is my code: /** *deletes the element under w and places w over the next element *@param window w *@return the element under w *@exception …

Member Avatar for SasseMan
0
138
Member Avatar for helpmepassclass

I'm using a 2d array and am having to find the find the furthest two numbers apart and print both of them numbers. The text file I'm reading from has numbers from 0 to 194. Here is the code that I have so far. Any help with be greatly appreciated. …

Member Avatar for helpmepassclass
0
129
Member Avatar for sho12345

Another day yet another assignment, which is why I am here. I come with 2 problems. 1. I cannot for the life of me figure out the printf function. I want to do be able to do this: Number Type Amount 1 type 2.00 2 type 12.00 Well right now, …

Member Avatar for sho12345
0
97
Member Avatar for Blaine Tuisee

I have been running this application for some time and have just recently begun to receive this error message. I would be eternally grateful if someone could shed some light on what causes this error or it's possible sideffects. [CODE]04/27/2010 00:06:16.016 [ERROR] com.ghd.domain.GHSessionFactory.createSession(GHSessionFactory.java:129) - An open thread session is being …

0
99
Member Avatar for cherryduck

Hi everyone, I'm trying to write an image editor in Java, one of the functions is histogram equalisation, but my code is producing a greyscale image instead :( Here is my code, any help would be greatly appreciated, ta. [CODE] private void histEqMenuItemActionPerformed(java.awt.event.ActionEvent evt) { BufferedImage inputImage = getImage(); BufferedImage …

Member Avatar for cherryduck
0
101
Member Avatar for KirkPatrick

I seem to be having an issue with a program I am creating. It should be a simple program that sends commands from a Java program to a Groovy script (whether the script be on the same computer or another on the network) but I am running into some problems. …

Member Avatar for KirkPatrick
0
956
Member Avatar for mahdi68

Hi , i have problem to run my code in eclipse !!! whene i run this code on netbeans it`s successful runs but on eclipse this error is shown : [CODE]Null Pointer java/lang/NullPointer Exeption[/CODE] [CODE] 1. import java.io.IOException; 2. 3. import javax.microedition.lcdui.Canvas; 4. import javax.microedition.lcdui.Graphics; 5. import javax.microedition.lcdui.Image; 6. 7. …

0
69
Member Avatar for paddymarmion

Hi ppl, Im have trouble returning the array in this program the error's im getting G:\sp.java:151: incompatible types found : char[][] required: char return (array1); ^ G:\sp.java:187: incompatible types found : char[][] required: char return (array1); ^ 2 errors [code]class sp { public static void main(String[] args) //calling of methods …

Member Avatar for javaAddict
0
2K
Member Avatar for EddieC

Hewlett-Packard today [url=http://www.hp.com/hpinfo/newsroom/press/2010/100426xa.html]announced[/url] updates to [url=https://h10078.www1.hp.com/cda/hpms/display/main/hpms_content.jsp?zn=bto&cp=1-11-127-24^1185_4000_100&jumpid=reg_R1002_USEN]Service Test Management 10.5[/url] and [url=https://h10078.www1.hp.com/cda/hpms/display/main/hpms_content.jsp?zn=bto&cp=1-11-127-24^1352_4000_100__]Functional Testing 10.0[/url]--its quality assurance tools for software testers--that the company says are now better equipped to help development teams find defects earlier and cover code for Adobe Flex/Flash, Ajax, Microsoft Silverlight and other rich client technologies. New in Functional …

Member Avatar for EddieC
0
241
Member Avatar for Um num num

Is there a way to add a mouse listener to an image for example when the image is clicked change the text of a label... :?: Any help would be greatly appreciated Thanks’ :)

Member Avatar for Um num num
0
281
Member Avatar for guptashubham123

Hi, I have coded java project to predict stock market using Encog Neural Network. It is actually the java adaptation of this project in c# [url]http://www.heatonresearch.com/encog/articles.html[/url]. The problem is when i obtain data it works fine but when i click on train network a window opens and the program hangs …

Member Avatar for jwenting
0
99
Member Avatar for joe93

We must multiply matrices that are comprised of the 3 x 4 matrix and 4 X 2 matrix. 1 2 -2 0 -1 3 -3 43 -3 4 7 2 X 0 9 = 18 60 6 0 3 1 1 -11 1 -20 4 -5 We must hard code …

Member Avatar for javaAddict
0
115
Member Avatar for DRxACULA

Hi, I need to simulate a drag race between 4 cars ( a total of 3 races) to determine a winner based on the ratio between weigh/horsepower and I'm having trouble creating a determineWinner method. Here's my code so far: Track class: import java.util.*; import java.text.*; /* Author: Joey Turner …

Member Avatar for javaAddict
0
1K

The End.