35,618 Topics

Member Avatar for
Member Avatar for SebFr

Hi, I want to be able to call a Javascript file from a C# Windows Application. This is just a stand alone C# application. What I want to be able to do is to execute this JavaScript file, think of it as a function, and be able to pass parameters …

Member Avatar for kvprajapati
0
3K
Member Avatar for ceyesuma

I have been trying to find how to set a property for a derby connection to have a prepared statement perform several INSERT queries. it was suggested that this may be possible. [QUOTE]Are you trying to execute multiple statements with a single sql string? If so, have you activated the …

Member Avatar for masijade
0
117
Member Avatar for ku95

Im currently working on a Connect4 progrqam and I'm trying to convert a string into an integer. You will see that it is under the Connect4View. Its really frustrating as I'm struggling to find a way round this. Is there a possible solution to this and can someone please tell …

Member Avatar for ku95
0
162
Member Avatar for RossMc

Hi, I need to create this Carpark application that looks like this [url]http://i35.photobucket.com/albums/d171/rossmc/java-1.jpg[/url] I have got the buttons to work but when I try to make the grid it is not showing with the buttons when I run it. This is the code I have so far. Does anyone know …

Member Avatar for masijade
0
131
Member Avatar for AFB

this erorer message appear to me when i run projact --------------------Configuration: afb - JDK version 1.6.0_17 <Default> - <Default>-------------------- Exception in thread "main" java.lang.StackOverflowError at sun.awt.Win32GraphicsConfig.getBounds(Native Method) at sun.awt.Win32GraphicsConfig.getBounds(Win32GraphicsConfig.java:215) at java.awt.Window.init(Window.java:393) at java.awt.Window.<init>(Window.java:432) at java.awt.Frame.<init>(Frame.java:403) at java.awt.Frame.<init>(Frame.java:368) at javax.swing.JFrame.<init>(JFrame.java:158) at Convert.<init>(Convert.java:10) at Convert.<init>(Convert.java:115) at Convert.<init>(Convert.java:115) at Convert.<init>(Convert.java:115) at Convert.<init>(Convert.java:115) at …

Member Avatar for quuba
0
242
Member Avatar for bigsurya
Member Avatar for Hakoo

-----> How can I make one report file using JSP so I can send to other user and he/she can refer it?? -----> And How can I redirect one page to other page with some delay such one page can display 5sec and thn redirect automatically redirect to other page. …

Member Avatar for Stefano Mtangoo
0
97
Member Avatar for spotlight87

hi guys >> i need ur help please >>> i ve created a login page which includes user name and password and i created a welcome page which contains the required codes for connection and verifying the username and password from oracle database .. when i run the login page …

Member Avatar for spotlight87
0
305
Member Avatar for bettybarnes

hi guys i'm having a problem on how to view my background it should be like this [URL=http://img148.imageshack.us/i/applet.png/][IMG=http://img148.imageshack.us/img148/9121/applet.png][/IMG][/URL] Uploaded with [URL=http://imageshack.us]ImageShack.us[/URL] the pacman/pink.jpg should enter the house, but how im so lost in this, i dont have an idea...anyone please help me... here's my code [CODE]import java.awt.*; import java.applet.*; public …

0
39
Member Avatar for MrBlack

I m using NetBeans IDE6.8 to create a application.for this i use Japplet form . when i darg and drop buttons and textbox, i cant give them a static position.when i move a textbox some other textbox or label also go here and there, how can i prevent this , …

Member Avatar for cale.macdonald
0
57
Member Avatar for PhiberOptik

Hello, I'm working on a web scraper of sorts, my main goal is data, I was wondering what a good, efficient way of organizing the data that I'm downloading is? Here is what I have, I download the webpage, and ends up as a FileReader object, then I send it …

Member Avatar for cale.macdonald
0
114
Member Avatar for Demon_singh

Could anybody help me with this code 1. want to read a file into an array. 2.three button should sort it 1st product name should sort it alphabetically, 2nd maximum stock level which sort by maximum value, 3rd price sort by maximum value on the top. thanx cheers Demon

Member Avatar for moutanna
0
108
Member Avatar for evak77

I have this program that is giving me some trouble, can anyone tell me what is wrong. This is the error i am getting trying to run program java.lang.NoSuchMethodError: main Exception in thread "main" Exit code: 1 There were errors

Member Avatar for JamesCherrill
0
49
Member Avatar for tiny7415

I am looking for a host that supports jsp files and xml. I went to several host provider and I noticed that most of them supports asp and not jsp. Is jsp a standard language that every host supports it?

Member Avatar for Camy
0
148
Member Avatar for KONTOL

public class AddPlanePanel extends JPanel implements MyObserver { private JLabel planeLabel = new JLabel("New Plane "); private JLabel nameForPlane = new JLabel("Name:"); public JTextField inputPlaneName = new JTextField(15); private JButton button = new JButton("Add"); private JLabel status = new JLabel(); private JLabel typeLabel = new JLabel("Type:"); private String[] typeStrings = …

Member Avatar for moutanna
0
183
Member Avatar for fabunmi adeniyi

this code runs succesfully onnet bean, though it compiled in prompt but compiler is telling me that it is not checked[code]import java.io.*; import java.util.*; class RandomSelection { public static void main(String[] args) { try{ FileInputStream fstream = new FileInputStream("c:\\filea.txt"); DataInputStream in = new DataInputStream(fstream); BufferedReader br = new BufferedReader(new InputStreamReader(in)); …

Member Avatar for moutanna
-1
123
Member Avatar for flyingcurry

I tried using this code below[CODE]if (choice == 6) main (); //takes the user back to the main method to the Main Menu[/CODE] but it won't compile. error message: [QUOTE]No applicable overload for the method named "main" was found in type "movitetogo". Perhaps you wanted the overloaded version "void main(java.lang.String[]args)throws …

Member Avatar for fabunmi adeniyi
1
3K
Member Avatar for kalaiselvi.v

File file = new File("filename"); FileInputStream fis = new FileInputStream(file); len = (int)file.length(); //prepared stmt st.setBinaryStream(1, fis, len); I have uploaded the file into mysql database from servlet program. But how to read that file or tell me how to upload a doc into the database.

Member Avatar for electricrain
-1
921
Member Avatar for Amoryethel

This is my first post here, so excuse me if I'm not posting my question in the correct format. I'm trying to make a program that determines whether the score entered is passing (higher than 70.0) or failing (lower than 70.0). The array I'm using needs to be declared as …

Member Avatar for moutanna
0
106
Member Avatar for sreenivas.m41

hello, can any one help me ,i am not getting mysql datbase values from server, to my system through applet it display all values null....but locally the program getting the values is there any browser settings..or any thing need i have to do pls help me................

0
16
Member Avatar for Chaster

Hi all, I have two strings, in which the order of words may differ. I would like to hash both of them and obtain the very same hash code for them. So I need a hash that returns the same value for "Hello world" and " world Hello". Does such …

Member Avatar for javaAddict
0
79
Member Avatar for Raghav686

The requirement is to have an applet which refreshes it self every second. I have created a thread for this purpose. I am using paint function to display all the values within a rectangle. The problem is that 1.i am not able to call paint() function from run(). 2. The …

0
29
Member Avatar for the_preface

I'm writing a program which accepts the price of a tour. A tour is priced between 29.95 and 249.99. It's supposed to repeat until a valid price is entered... However, even when it is, the program continues to repeat. Here's what I have so far. [CODE] import java.util.Scanner; import java.util.InputMismatchException; …

Member Avatar for the_preface
0
125
Member Avatar for lotrsimp12345

Here's the assignment: You are to create a single server (in either Java or C/C++) which can service both C/C++ and Java clients. The protocol of the server is as follows: 1. The client contacts the server. 2. The client performs a single send of a data packet containing the …

Member Avatar for moutanna
0
1K
Member Avatar for kiyu2keith

How do you terminate the program?? for example I input exit on the dialog box as it should terminate the program. I really don't have any idea on how to do it.

Member Avatar for kiyu2keith
0
78
Member Avatar for vextorspace

I have a JFrame that I call from another JFrame like so: [CODE] Viewer2D v = new Viewer2D(this); v.setVisible(true); v.DrawAssembly(glNameList.get(hitRecs.get(0).getNames()[0])); [/CODE] I set the exit action to an action listener and call dispose() and both of my JFrames disappear! How do I get only the one I'm working on to …

Member Avatar for BestJewSinceJC
0
87
Member Avatar for bigsurya

I am getting a NullPointerException in the statement which I've hidden. Can some1 tell me why is it so ? [code] import java.io.*; class College { String branch,name = new String(); int avg_marks,rno; InputStreamReader in= new InputStreamReader(System.in); BufferedReader buf= new BufferedReader(in); String s=new String(); void read()throws IOException { System.out.println("Enter name"); …

Member Avatar for bigsurya
0
132
Member Avatar for ubi_ct83

Hello experts, actually i have a situation like this. i have a drop down menu value:{2,3,4,5,6}. there is a common operation need to be done if any number in menu list chosen.each of the number must have different number of layers. if user choose 2 means 2 layers,if 3 means …

Member Avatar for ubi_ct83
0
152
Member Avatar for ragedsparrow

HEy everyone. I've been workign on this for a few days now and it's due tomorrow, so I thought I would ask a developer community for any input. Here is what is supposed to be happening. The Server starts. The Client Starts. The user enters a table name into the …

Member Avatar for ragedsparrow
0
161
Member Avatar for tedsu

I am trying to add Jtext area to a Java application, load text from a Notepad file & allow user to change color of text & make text invisible/visible using Menu bar. I am having trouble with the 1st part--loading the contents of a text file. Any help would be …

Member Avatar for moutanna
0
158

The End.