35,618 Topics

Member Avatar for
Member Avatar for jrdark13

I assume the drowpdown/layer menu is javascript simply because it has to wait until the entire page is loaded so that I can see the sub-options... I really wouldn't want it to be redone but sometimes at work I have slow internet and loading the page just pisses me off …

Member Avatar for Dani
0
157
Member Avatar for starsinthesky

how can you put spacing between objects? i mean, how can you place an object,e.g. a button, to the next line inside a pane? i tried setting the size (PaneSample.setSize(8,9)) of the pane and use flowlayout, but it wont work. can i get any suggestions from anyone? thanks! :)

Member Avatar for Ezzaral
0
97
Member Avatar for Peda

Hi! I am not that good in java and as a homework we had to write to classes: a partial abstract class Koerper and it's subclass Kugel but when I try to compile them the compiler always tells me this: [quote]Kugel.java:9: Kugel is not abstract and does not override abstract …

Member Avatar for Peda
0
174
Member Avatar for jrdark13

This is my assignment, before some of you complain, I finished it. It works all I want is something that is in the back of my head bugging me. If a user was to input a letter instead of a number how do I keep the program from crashing and …

Member Avatar for Antenka
0
138
Member Avatar for darylesha

I am trying to work out this issue in a molecular caluclator that I am trying to develop. I would like to go from mass to formula. So I am given a mass, ie 120.3433. And an equation could have up to 8 C, 3 H, 11 N, 6 S …

Member Avatar for diafol
0
118
Member Avatar for deola_lanre

pls help with a java program to simulate a bursary unit with emphasis on fees payment and verification, salary payment. you guys are gonna make my day.tnx

Member Avatar for PhiberOptik
0
219
Member Avatar for Infectme

Hello all! I am having a few issues with my code and after hours of endlessly searching Java help sites and Java forums, I decided to bring my issue to the table to receive some help specific to me, I am receiving the error 'Illegal start of expression' with the …

Member Avatar for javaAddict
0
122
Member Avatar for xlx16
Member Avatar for stultuske
0
101
Member Avatar for tmoney7566

been working on this for 2 days and can't figure out what I am doing wrong. We are suppose to input a day and the days gifts are to be in the output. When I put in my day it starts with the correct day but then loops through all …

Member Avatar for tmoney7566
0
108
Member Avatar for AllenB

Hello, I am having a problem writing to a file on a client/server application. I can send the data from a JTextArea to the server, it appears to read the text, but I cannot seem to get the server to write the data to the .txt file. Can anyone help? …

Member Avatar for Antenka
0
170
Member Avatar for bhowal_1981

command[0] = "cmd"; command[1] = "/C"; command[2] = "dir"; command[3] = "C:\\SomeDir"; Runtime rt = Runtime.getRuntime(); Process p = rt.exec(command , null , workDir); It is working fine. Here the executable command is "dir". Here p.waitFor() gives value 0. [COLOR="Red"]But if I give any other command suppose "rename *.doc *.rtf" …

Member Avatar for verruckt24
0
114
Member Avatar for navinlearns

I have been working on a program that Should Scan a small Subnet i.e for eg 10.1.1.1 to 10.1.1.255 with the subnet mask 255.255.255.0 I am attaching screenshots of the main screen of my project as "Screenshot 1" source code :jMenu.java I am posting the code here: [code=java] package projectpack; …

Member Avatar for masijade
0
175
Member Avatar for Dancealot

Hi all. I am trying to do a kind of streaming app in j2me, for a w810i. The device I am streaming data packages to, have a buffer of 10kbytes for me to use. I am streaming datapackages where 24Kbytes is used in about ½ second. Does anyone know if …

0
60
Member Avatar for ezkonekgal

When you put an item on a queue, how do you show the items inside the queue? do you use peek method? the situation is a linked queue...

Member Avatar for ezkonekgal
0
138
Member Avatar for l_03

import java.io.*; import java.util.*; import javax.swing.*; import java.util.StringTokenizer; public class Sample { public static int count = 0; public static String s[]=new String[2]; public static String s2; public static String s3; public static void main (String args[]) throws IOException{ isRead(); } public static void isRead()throws IOException{ int count2 = 0; …

Member Avatar for verruckt24
0
110
Member Avatar for probedb

Hi all, I've just joined but have been coding a while longer :) I'm having trouble migrating a webapp that works fine under Tomcat 5.0.28 to 5.5. I've done several others without any problem. This one, however uses SingleSignOn. I can't see anything wrong with my setup (config below) from …

0
62
Member Avatar for rude04

i used setundecorated(true); to remove the buttons and border of the window,,the problem is the frame only stays where it is, because the title bar is removed i cant drag it around the screen anymore.. what code should i add to be able to drag it anywhere in the scree …

Member Avatar for darkagn
0
217
Member Avatar for Coyboss

Hello everybody, I know what I want to do with the code, but I am not sure where exaclty to put the "if" statements. I am working on a weekly payroll program and I need to put in an if statement so it throws an error if the weekly hours …

Member Avatar for Coyboss
0
273
Member Avatar for puneetkay

Hello everyone, Im back, with a new problem. LOL! I need to change Java datatypes to SQL types. I have sql queries as String object. like this one : [CODE=sql]create table MyTable ( id bigint, name String , city String , state String ) OR create table MyTable ( id …

Member Avatar for masijade
0
180
Member Avatar for khalidmehmood

Hi Experts! I am trying to build dynamic hyperlinks but i cant do this. i am new to JSP. please guide me. here is my code: [code=JSP]<% try{ Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL, "root", "root"); statement = connection.createStatement(); rs = statement.executeQuery("SELECT * FROM contacts"); while (rs.next()) { %> <a href="viewdata.jsp?value1="+<%rs.getString(1)%>+">"+<%out.println(rs.getString(1));%></a> <%} …

Member Avatar for peter_budo
0
2K
Member Avatar for lllllIllIlllI

Hi I have been using java.swing for my GUI programs so far and i kinda hit a brick wall, and i think its a stupid one on my account, i cant find a way for something to load a html file to the screen using a java.swing control. This is …

Member Avatar for stephen84s
0
87
Member Avatar for lllllIllIlllI

Hi When using java, for almost all the time i just use java.swing for my applications that i make, yet when using other programming languages i often find that the GUI toolkit that comes bundled with the download of the Development Kit, is not quite as good as some third …

Member Avatar for stephen84s
0
138
Member Avatar for sivak

i have 2 combo box country and state if i select any one of the countryin first combo box automatically partcular state shoudl display in second combo box ...can u tell me javascript coding for this ?

Member Avatar for virang_21
0
85
Member Avatar for freesoft_2000

Hi everyone, I am trying to insert a image into the jtextpane using the html document as the default document for the jtextpane. It seems that nothing happens when i try to insert the image from disk. htmldoc - an instance of the HTMLDocument class TextPane1 - an instance of …

Member Avatar for arseniew
0
145
Member Avatar for Tavicz

Wel, I have discovered, how to copy one text file to another,yet. (See code bellow). However, I really need to Cap every word in the source text file and copy the text that way to the second file. But I'm desperate. I tried few ways to make it (via Character.toUpperCase()) …

Member Avatar for Tavicz
0
141
Member Avatar for dreamer14

Is It possible? Tried this but all i see is blank haha [code] while (rs.next()) { String c=rs.getString("ProductID"); String d=rs.getString("ProductName"); String e=rs.getString ("ProductImage"); out.print("<option value="+c+"><img border=0 src=\"picture/" + e + "\" width = \"170\" height=\"157\"></option>"); } [/code] ANy one with recommendations on how to make a picutre based drop down …

Member Avatar for dreamer14
0
161
Member Avatar for RohitSahni

I will be starting working on perl and java soon.. Can anyone please help, form where to start so that i get the confidence of working on it and i can do hands on.

Member Avatar for verruckt24
0
162
Member Avatar for Modo

hi guys how r u doing .. i am trying something in java .. i want to know if there is a way to the java looks into the current year. i want to be to return the age of someone after filling in his birth year .. and then …

Member Avatar for Modo
0
137
Member Avatar for srs_grp

[code] stm =con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE); rs=stm.executeQuery(qry); rs.last(); String s=rs.getString(1); [/code] I have backend as sybase. But above code is throwing an error as follows: [code] Error [Sybase][ODBC Driver][Adaptive Server Enterprise]HEADERFORMAT1 not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output) [/code]

Member Avatar for stephen84s
0
184
Member Avatar for jjaunich

Hi, I've just started a Java course, which is giving me trouble because I've had so much unscheduled overtime. I have three programs due that have small problems that I can't fix no matter how many changes I've made. They are really basic, but I've only been one week into …

Member Avatar for verruckt24
0
152

The End.