32,204 Topics
| |
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" … | |
hi, can anybody please help me understand the difference between java runtime and java virtual machine? | |
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 … | |
[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); … | |
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 … | |
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 … | |
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 ? … | |
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 … | |
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 … | |
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? | |
[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); … | |
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 … | |
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 … | |
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) { … | |
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 } | |
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 … | |
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 … | |
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 … | |
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. … | |
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, … | |
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 … | |
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 … | |
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. … | |
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. … | |
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 … | |
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 … | |
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’ :) | |
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 … | |
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 … | |
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 … |
The End.