32,204 Topics

Member Avatar for
Member Avatar for hbk619

I want a line of buttons down the side of a swing window. I got this code so far: [code=java]import javax.swing.*; import java.awt.*; class basic extends JFrame // implements ActionListener { public basic() { super("Till"); setSize(600,500); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); Container contentArea = getContentPane(); contentArea.setBackground(Color.white); BorderLayout flowManager = new BorderLayout(); contentArea.setLayout(flowManager); JPanel …

Member Avatar for hbk619
0
2K
Member Avatar for sarath.koiloth

[B]What is a nested beans?i want to create a nested bean for my application?Please help Thanks[/B]

Member Avatar for lookof2day
0
92
Member Avatar for upstream

Hey, i am practicing in this book sample, it says i can rewrite my code for determining the highest value in my 3 input. the commented part is working perfectly (Line 19, 26), it can return the highest value... but when i try to rewrite it using the Math.max method, …

Member Avatar for upstream
0
158
Member Avatar for anil1219

Hi All... Plz solve my problem. String temp="Vendor number modified from 12345 to 00056789" How to separate these two numbers ? Plz reply soon.

Member Avatar for anil1219
0
103
Member Avatar for Dio1080

I'm working on a code on compatibility and it seems that after I ask and answer the first question, the program just stops, I have no clue why it doesn't go on to ask the next question, can somebody help my figure this out, thanks, oh here is my code. …

Member Avatar for Dio1080
0
136
Member Avatar for rapperhuj

Hello everyone, I just need help on this code. I can't debug it, I'm just new in Java and this is just my fifth assignment so I'm really having a hard time. Here's my code: [code]import java.io.*; public class input { public static InputStreamReader Reader=new InputStreamReader (System.in); public static BufferedReader …

Member Avatar for saifjob40
0
212
Member Avatar for quadiator

hi, i am just wondering if java/java applet can be used to "post" and "get" information from a website? i want my program post info to a site and get the output info back and display it . for example if i give it the input : <url snipped> it …

Member Avatar for quadiator
0
119
Member Avatar for iCez

Hi everyone, I hope you guys can help me. [U]Output[/U] Enter your department number: You belong to: 1-3 = Mr.X 4-7 = Mr.Y 8-9 = Mr.Z ------ [I]Error: When I input numbers from 1-9, the output that is displayed is always "You belong to: Mr. Z" Here's my code:[/I] [CODE]import …

Member Avatar for iCez
0
131
Member Avatar for KimJack

Hello All, I am trying to figure the best route to take for this problem. I am trying to read from a text file. The text file is setup at follows: John 90 98 9009 Smith 90 87 87987 Eric 76 66 23443... I am trying the figure how to …

Member Avatar for peter_budo
0
103
Member Avatar for Renzokouken_22

Guys... Can You Give Me Some Sources/Links/e-Books On How Can I Use mySQL in my Java Application... Because We Will Have A Project In Our Object Oriented Programming Subject... Please Help Me... I Really Want To Pass In This Subject...

Member Avatar for peter_budo
0
94
Member Avatar for thenava

Hi, I'm trying to write a graphing application, that takes an equation and graphs it, and thats no problem. However, I want to add a cursor, which moves along with the mouse. I managed to add one, however, the cursor causes everything else to refresh too. Is there anyway to …

Member Avatar for thenava
0
113
Member Avatar for MattEvans

As title; unless there's already a way: [code="HTML"] <html> <head> <script type="text/javascript"> function myfunction( ) { alert( "Hello, World!"); } </script> </head> <body> <p>Some HTML code</p> <img onclick="myfunction( );" src="some_image.gif"/> </body> </html> [/code] [code="Javascript"] <html> <head> <script type="text/javascript"> function myfunction( ) { alert( "Hello, World!"); } </script> </head> <body> <p>Some …

Member Avatar for MidiMagic
0
183
Member Avatar for omoz4real

Hi please I not a new user in java programming language , i have been programming in java for up to 2 years but i have developed an interest in graphics. can any one please tell me where i can get tutorials from any website or refer me to any …

Member Avatar for Ezzaral
0
109
Member Avatar for saifjob40

i am new learner in java and i wan to learn how to do java database connectivity with MySql i wrote the code still i face problem , will any ony plase let me know the wexxat coding for that . plase help me i am in a greate need

Member Avatar for peter_budo
0
117
Member Avatar for Dio1080

ok I have a program that is suppose to use dialogs boxes to obtain input and display output and also use console input an output. But here is the thing, I believe my code is a little right but don't understand the errors, can somebody help me please, here is …

Member Avatar for Paul.Esson
0
82
Member Avatar for Megha_Patni

Hi All, I have to do a validation on date in my form. I get a string of the format "dd/mm/yyyy" in my form. now i have to check that this date should be of the past including the present week(for eg. if I add the entry on 04/09/2007 then …

Member Avatar for ~s.o.s~
0
70
Member Avatar for pmhayden

I have a ComboBox defined as follows: [B][COLOR=#7f0055]private[/B][/COLOR][COLOR=#000000] String[] [/COLOR][COLOR=#0000c0]months[/COLOR][COLOR=#000000] = {[/COLOR][COLOR=#2a00ff]"Month"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"01"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"02"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"03"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"04"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"05"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"06"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"07"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"08"[/COLOR][COLOR=#000000], [/COLOR] [COLOR=#2a00ff]"09"[/COLOR], [COLOR=#2a00ff]"10"[/COLOR], [COLOR=#2a00ff]"11"[/COLOR], [COLOR=#2a00ff]"12"[/COLOR]}; [B][COLOR=#7f0055]private[/B][/COLOR] JComboBox [COLOR=#0000c0]jComboBoxMonth[/COLOR] = [B][COLOR=#7f0055]null[/B][/COLOR]; and down further I have: [COLOR=#0000c0]jComboBoxMonth[/COLOR][COLOR=#000000] = [/COLOR][B][COLOR=#7f0055]new[/B][/COLOR][COLOR=#000000] JComboBox([/COLOR][COLOR=#0000c0]months[/COLOR][COLOR=#000000]);[/COLOR] [COLOR=#000000][/COLOR] [COLOR=#000000]Now i am trying to do run an if statement …

Member Avatar for peter_budo
0
85
Member Avatar for ceyesuma

Hello I am at a work computer (firewall) I need to add to the CLASSPATH and the PATH to use apache tomcat. Though I know this addition won't disrupt anything I do not have a administrative password. Is there a way to add to these enviornmental system variables? DOS maybe?

Member Avatar for Paul.Esson
0
104
Member Avatar for paleciop

Hi, im having trouble with a code, it doesnt do what its supposed, theres something wrong with it but i cant find what, maybe you could help me find the problem and fix it. heres the code: public static byte[] runlengthencoding(byte[] m) { byte[] copia = new byte[m.length+9999999]; for(int w …

Member Avatar for Ezzaral
0
139
Member Avatar for ceyesuma

[code] <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <context-param> <param-name>webmaster</param-name> <param-value>webmaster@myeducationonline.com</param-value> </context-param> <context-param> <param-name>jdbcDriver</param-name> <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value> </context-param> <context-param> <param-name>dbURL</param-name> <param-value>jdbc.odbc.clientDB</param-value> </context-param> <session-config> <session-timeout>30</session-timeout> </session-config> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app> [/code] so this file as to be put in my "workspace" where my projects are ?

Member Avatar for Ezzaral
0
145
Member Avatar for ceyesuma

You really do not have to open the netbeans project. However you can. Does anyone know why when I comple the jsp's can not find the bean because the class file is in the build/classes file and not the src file. Does it not need to be there? Or I …

Member Avatar for Ezzaral
0
98
Member Avatar for Pyare007

How to solve stack over flow? In my application no recursive function call. It is a [B]J2EE application (web)[/B] In the application one Applet is calling. This applet having many pages and many records, and the records arranged in different pages. While going to next page it taking too much …

Member Avatar for masijade
0
78
Member Avatar for bigbluesky

I can only get 2 of the buttons to work - what am I doing wrong? I have been working on this for 5 days. I also cannot get my icon to work - do I need more of an address? [CODE] import java.util.ArrayList; //For ArrayList public class Product implements …

Member Avatar for plasmafire
0
131
Member Avatar for apontutul

hi guys......i want to view a piechart extracting items from a mysql database. i've created a button on a jsp page(view.jsp) which is calling another jsp page(viewrst.jsp) when i click that. the code for (viewrst.jsp) is given below: [code] <%@ page language=[COLOR=red]"java"[/COLOR]%> <%@page import=[COLOR=red]"org.jfree.chart.*;"[/COLOR]%> <%@page import=[COLOR=red]"java.sql.DriverManager;"[/COLOR]%> <%@page import=[COLOR=red]"java.sql.*;"[/COLOR]%> <%@page import=[COLOR=red]"org.jfree.data.jdbc.*;"[/COLOR]%> …

Member Avatar for peter_budo
0
205
Member Avatar for ceyesuma

I am using a example in a book to build my own program (java server pages) I can not even get the example to run. Is there someone to take a look at the program? (netbeans package)? [EMAIL="ceyesuma@hotmail.com"][/EMAIL]

Member Avatar for ceyesuma
0
136
Member Avatar for ceyesuma

org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. error: Invalid class file format in C:\Program Files\Java\jdk1.6.0_02\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '49.0' is too recent for this tool to understand. I'm not sure what to do to fix this error tomcat 4.0; any help?

Member Avatar for peter_budo
0
139
Member Avatar for staneja

Hi All I want to implement "FIX protocol" The Financial Information eXchange (FIX) protocol using java technology can any of you please guide me what are the things i need to know in java to implement this. and any further help from where i can get to know more about …

Member Avatar for sergeant
0
131
Member Avatar for w32.sysfile

i want to do a compiler but, now i am stuck in the compilation part, suppose that i want to compile "cool.java" that is located in the bin directory, what shold i do?? help please

Member Avatar for w32.sysfile
0
143
Member Avatar for volscolts16

Hi All, Thanks to everyone who helped work out my probs last semester. Ended up with a B in Computer Science class. Even though I thought I was going to fail. Anyway, New semester another new problem. I have done the assignment and keep running it. I keep getting an …

Member Avatar for peter_budo
0
93
Member Avatar for markku

Hello, Well guys, I consider myself a beginner in Java generally and in JMF in particular, and actually I am student at the University and doing my project which creating Multi-video-Players (kindly check out my code in the bottom), so I have 6 different players and each one plays different …

0
62

The End.