32,199 Topics

Member Avatar for
Member Avatar for scunnywhite

[code]/*Imports Java library files*/ import javax.swing.JOptionPane; import java.text.*; /*Filename for programs class*/ class KwikKapers { /*Runs program- method*/ public static void main(String[] args) { KwikKapers optpane = new KwikKapers(); } /*Constructor*/ public KwikKapers() { /*Instruction to begin start menu method*/ Startmenu(); } /*Method for main start menu*/ public void Startmenu() …

Member Avatar for Ezzaral
0
83
Member Avatar for neknek

We were asked to create an applet in which it will get the current date, then the user will input a number (n), when the user presses 'ok', the date+n after will display. Here is my code so far [CODE]import java.applet.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.util.Calendar; import …

Member Avatar for neknek
0
91
Member Avatar for texantrail

HI I need some help on how to go about in java program to design a Strict two phase locking schema. where the input file is given as notepad and input as follows through a notepad as follows b1; r1(Y); w1(Y); r1(Z); b2; r2(Y); b3; r3(Z); w1(Z); e1; w3(Z); e3; …

Member Avatar for texantrail
0
812
Member Avatar for ninaijanai

[CODE]import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.JOptionPane; import java.net.*; public class User extends Applet implements ActionListener {Label lblUser = new Label("Username:"); Label lblPass = new Label("Password:"); TextField fieldUser = new TextField("",10); TextField fieldPass = new TextField("",10); Button btnOk = new Button("OK"); URL order; public void init() {add(lblUser); …

0
53
Member Avatar for tactfulsaint

hello everyone I still need code snippet help with authentication of username and password on both java and web application..

Member Avatar for ~s.o.s~
0
566
Member Avatar for dav555

I would like to make two JList's with DnD from one to the other and in it self. I created a TransferHandler like this one in the java tutorials: [URL="http://java.sun.com/docs/books/tutorial/uiswing/dnd/dropmodedemo.html"]Tutorial-Page[/URL] Now I can drag and drop from one to the other. I works also if I move one list element …

0
63
Member Avatar for mdew_47

i have been given a 2-phase compiler containig the lexical phase and the syntax phase as my final year project. for that i need to know how to call a C program from a Java applet using a button called "compile". A little help will make me thankful.

Member Avatar for mdew_47
0
202
Member Avatar for Dancealot

Hi all. I have a problem when I am trying to run an application on my mobile. The app compiles on netbeans, but when I copies it to my mobile telephone, it sais: java.lang.NoClassDefFoundError. I have been told that I should have references to everything and that i might need …

Member Avatar for Dancealot
0
176
Member Avatar for gaurav_chhabra

[B][/B]Hi, I am using cruise control on Windows XP. We have CVS as our version control tool. I am using the following four files to achieve build of my code. 1. config.xml (This file is present in cruise control directory and it calls up the file 'tc-build.xml'.) 2. tc-build.xml (This …

0
60
Member Avatar for twgood

So far it looks pretty good, except in the GUI I can not get the Modify, Save, Delete, Add and Search buttons to work. They produce error codes : Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javaapplication54.ModifyButtonHandler.actionPerformed(Inventory6.java:488) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6041) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) …

Member Avatar for darkagn
0
98
Member Avatar for adityam4444

We have got a good way to upload a file in struts framework, using enctype="multipart/form-data" and using tag html:file. But in one of my applications I need to use a PNG image for the functionality of html:file. The reason is, I cannot make the textbox of html:file readonly. The user …

0
58
Member Avatar for twgood

In part of my coding I know have this... throw new UnsupportedOperationException("Not yet implemented"); what does that mean, and what do I do with it?

Member Avatar for Ezzaral
0
70
Member Avatar for teh noobshow

ok heres what im currently doing... [/code/] (autocast)) == (15348) { cast manual with spell 1155; spell cast starts at position X Y; } } } } } itemID)) == 15348 { } return 406; { Case 1505: UsingMage) = true; else if (ItemID == 15348) [13] > 70 caster …

Member Avatar for Ezzaral
0
144
Member Avatar for sciwizeh

i want to make a code template in netbeans with the abbreviation of cn that will expand into the name of the current class being worked on, is there a way to do this? i cannot find anything about it. google won't turn up any good info

Member Avatar for sciwizeh
0
91
Member Avatar for Naween

I've soome buttons in my coding. It has some values. I want to add those val & display in a text box. When u press a button the amt has to be calculated. I tried bt it's not working.How can I do this? I need quick reply. This is my …

Member Avatar for Ezzaral
-1
84
Member Avatar for witza

:$ Ok people, bare with me for a second (or 60...) I'm developing a part of a larger application, and to cut to the chase, i now need to access an Hashtable that I've made global. This aplication is multithreaded, but I'm trying to access this hashtable from the same …

Member Avatar for nnobakht
0
179
Member Avatar for Naween

In my java code I get this error. Enyone fix it for me Plz? cannot find symbol `:method getSelectedItem()` This is my code. import java.awt.*; import java.awt.event.*; import java.applet.*; public class soda extends Applet implements ActionListener, ItemListener { Label lblhead,lblfoot,lblsize,lbltype,lblamt,lblbal,lblavilability; Button b1,b2,b3,b4,b5,b6,b7,btnref; Choice choice1; Checkbox ch1,ch2,ch3,ch4,ch5; float num,money,change; CheckboxGroup cbg,cbg1; …

Member Avatar for sciwizeh
0
100
Member Avatar for rapperhuj

hi sir, im a newbie in Java programming.. can u give me some tips or source.. that can read a file.. throughly and write to the file.. that can add more information to the .dat file when it adds or save more info to the existing file.. thanks a lot …

Member Avatar for peter_budo
0
100
Member Avatar for mystery_love123

Hi All, I want to make a SQL parser in Java which will give the names of view ,column names in select clause,and table names in 3 different arrays. This is the SQL Query which is there in text file. create view NAME1 as select a.col1 as alpha, b.col2 as …

0
56
Member Avatar for g_loughnan

Hi Lads, I'm trying to read from one spreadsheet, extract the contents of certain cells, and write them into a new spreadsheet. I've read from one spreadsheet fine, but when I try to write to a new spreadsheet, the output file is empty and I can't see why. Can anyone …

0
71
Member Avatar for hny_lyn

hello to all!!! i really don't have any problem this time, but there's something i wanna learn more about! we are discussing classes and inheritance now!! my professor have given us quite examples of it....but it wasn't that clear!! can i ask for a simple codes that implements a class …

Member Avatar for javaAddict
0
193
Member Avatar for oali

hi everyone i really need help with my problem, i have created a full online tutorial using applets however one of my html pages containing this particular applet will not show the applet when viewed in any broswer. The applet contains an image and without the image the browser shows …

Member Avatar for madhavipoudala
0
98
Member Avatar for ocreds

I'm new in java programming but somehow I understand little especially basic because I have a background in Vb6 I find it difficult because it has lot of java keyword that I dont understand. Now, I need your help to defend this program in our class. Help me please. If …

Member Avatar for javaAddict
0
211
Member Avatar for dav555

I have a file containing different tags and datas like: VERSION: 1.1.1 NAME: xxx VALUE: 1.5 START_IMAGE ‰PNG.... END_IMAGE i can't change this file....it is not mine... But i need to read the png image between the START_IMAGE and END_IMAGE tags. I don't know the length of the image-data. How …

Member Avatar for dav555
0
104
Member Avatar for Naween

Does java has toString function? eg : txtamt.setText(toString(num)); But it doesn't work. Plz give me the right method.

Member Avatar for Miyuki Suzuki
0
76
Member Avatar for jorgeflorencio

[QUOTE]Hello everyone I have the code that allows me to colect values acording if its Fail or Passed[/QUOTE] [CODE]package spimonitoring; import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.lang.reflect.Array; public class InspectionResults44{ public static final byte HEIGHT_AVG_RESULT = 6, HEIGHT_RANGE_RESULT = 11, AREA_AVG_RESULT = 16, AREA_RANGE_RESULT = 22, VOLUME_AVG_RESULT = 29, …

0
126
Member Avatar for HLA91

Hi all I copied the source code for a simple text editor from [URL="http://www.leepoint.net/notes-java/examples/components/editor/nutpad.html"]http://www.leepoint.net/notes-java/examples/components/editor/nutpad.html[/URL] I tried to modify it slightly by adding a help column to the menu bar so you would click Help> then a drop down list would appear with About and you click that and a frame …

Member Avatar for HLA91
0
160
Member Avatar for nageswar48958

Hi Friends, This is Nageswar, I hava a text file in which there are name and phone numbers of different persons, my task is to read those content and transfer it to a excel sheet. please help me asap: Thank and regards Nageswar

Member Avatar for Ezzaral
0
51
Member Avatar for Naween

I created a java Applet. It has an error. The error is applet not initialized. I need urgent help for this error. I created the interface using netbeings & coppied the code to the Jcreater. :(

Member Avatar for Ezzaral
0
88
Member Avatar for turingmachine

Please help... I'm new to this topic. What is the best (are the good) SMS Java APIs available? (A SMS Java API that is comprehensive and/or easy to understand/integrate.) Is the SMSlib / smslib.org ok to use? (I'm trying to make a very simple program/connection between my pc/Windows XP to …

Member Avatar for peter_budo
0
97

The End.