36,051 Topics

Member Avatar for
Member Avatar for Software guy

Hi, i have a problem here , i have made a class which has three methods , first method is to get size of the array and assign a random number to every element of array. Second method is to just print the whole array , while the last method …

Member Avatar for Software guy
0
155
Member Avatar for Futbol10

Hi sorry about asking so many questions.....and yes i have been searching on the internet, but anyways i am getting to start checking the array words with its chars and whatnot, but i dont know if will work i am confused where to put the array of words i have …

Member Avatar for Futbol10
0
115
Member Avatar for shobhit123

I would appreciate if anybody can explain me MVC in swings. I have heard that each compnent has respective model class but unable to relate it with MVC. Kindly explain.

Member Avatar for shobhit123
0
50
Member Avatar for Tareq85

i have this design internet | Router(Suse) ---- Content-Filter Server | LAN am using iptables to redirect client httprequests from Port 80 to my own program's port that is writen (in java) on the router now in my code i want to send ( redirect ) all client http requests …

Member Avatar for jwenting
0
129
Member Avatar for sunny9

Hi all !!! plz help me , how to open Jfreechart at client side i.e. by clicking button JFreechart Fram should pop up .. thanks ,

Member Avatar for jwenting
0
23
Member Avatar for warrior16

Hi, how would this work? Color circleColor = Color.yellow; JOptionPane.showMessageDialog(null, "The color of the circle is "+circleColor); Doing this prints out the values of red green and blue that make what ever color the variable is, like it would show this: java.awt.Color[r=0,g=0,b=0], exept for yellow. This is just an example …

Member Avatar for Alex Edwards
0
122
Member Avatar for C41R0

after i added in my JTextArea, everything seem mess up, their position have already run away, whats going on ? [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.event.*; import javax.swing.border.*; public class MainTabbed { JLabel locationLabel; JLabel divingTypeLabel; JLabel dateLabel; JLabel maxDepthLabel; JLabel averageDepthLabel; JLabel fBuddyLabel; JLabel sBuddyLabel; JLabel …

Member Avatar for C41R0
0
306
Member Avatar for Jishnu

Hello, I'm getting a compile-time error in jdk1.2.1 which says "Identifier expected" and points to this line in the code: [CODE]Vector<Fish> fishes = new Vector<Fish>();[/CODE] Aren't vectors supported in jdk1.2.1? I'm unable to catch the problem.

Member Avatar for Jishnu
0
101
Member Avatar for sandeep soni
Member Avatar for jwenting
0
97
Member Avatar for orcboyx

Hello all, Does anyone have a good tutorial that explains how JFrame works and how it can be implemented?

Member Avatar for eranga262154
0
74
Member Avatar for ray40o5

everything is fine on my computer except all java windown in internet explorer will not work. On many websites i cannot click on links. No videos will play...for example youtube videos. i need to know how to fix just this problem, or just to completly restore windows to its original …

Member Avatar for itdupuis
0
86
Member Avatar for AppleTastic

Hi, I'm trying to develop a program that will take one HTML file and from there open all child windows, copy the text on that HTML page and put it all into a new text file. I would do this manually but I have 2200 HTML pages to go through. …

Member Avatar for Ezzaral
0
82
Member Avatar for bops

Hey, I am trying to make a little MDI control with tabs, but my problems lies in the following: I want it so that when the mouse is over a tab, a close button i.e. an X is displayed on the tab, then the user may click this button to …

Member Avatar for Ezzaral
0
575
Member Avatar for TheWhite

I'm trying to create a JButton in 1 of my 2 JFrames which exits the top or current JFrame... If I try: [code] System.exit(0); [/code] The entire, currently running Java Virtual Machine, exits... (both frames) I'm basically trying to get the same result as [code]setDefaultCloseOperation(DISPOSE_ON_CLOSE);[/code] does to the X button …

Member Avatar for Ezzaral
0
120
Member Avatar for ashish1234

hi, i am new to jsp..i am trying do sort out a pblm.. i have 2 jsp files.. file1.jsp.. which is used to select all the records from a table called staff and display the records in a table..each record is coming with a check boxes which is used for …

Member Avatar for jwenting
0
1K
Member Avatar for nihardhruva

Hey all, I have a very strange problem and expecting to receive your answer very urgent... I have a class in my package named MyPackage on my tomcat server. I am using one method of this class, which is very time consuming, as follows in my jsp page... HeavyClass hc …

Member Avatar for jwenting
0
245
Member Avatar for abhijeet_raj

Hi, After installing jdk1.5 my program is compling but at the time of execution its giving error as Exception in thread main java.lang.NoClassDefFound error.I think it is problem of classpath.

Member Avatar for tsr_tvsk
0
170
Member Avatar for onsir

how to connet to database using hibernate, because i create hibernate.cfg.xml while is running i have build simple application for test connection to database using hibernate. when write application i'm not write hibernate.cfg.xml, but i want create while running. so when i click button show error like this " "Jun …

0
65
Member Avatar for akankshaag

Hi, I'm new to java and working on an application which has a tool to set alerts. This tool is based on EJBs and i've been asked to make it a stand alone application. I really have no idea how to go about it. please help! Akanksha

0
70
Member Avatar for brr

In my jsp page , there is one listbox which contains static items, in that particularly one item is there(Bank A/c) if we select that have to open new subwindow and disable the maximize,close button, and i have to put some 4 textboxed entering data , in that one value …

0
61
Member Avatar for farooqsam
Member Avatar for Jx_Man
0
49
Member Avatar for beelzibub

[ICODE] ... am i right to think that the call in the main ( new Grid ...) sets up the board then the (new Che ...) calls to set up the men/pieces which it does (i hope) but it also encounters a setLayout(new Grid ...) which iverwrites all the (new …

Member Avatar for Alex Edwards
0
160
Member Avatar for dnalor

package packagePgmaLibrarySystemRolandgasparDizon; import javax.swing.SwingUtilities; import java.awt.BorderLayout; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JFrame; import java.awt.Dimension; import javax.swing.JLabel; import java.awt.Rectangle; import javax.swing.*; import java.awt.*; import javax.swing.JSlider; import java.awt.GridBagLayout; import javax.swing.border.SoftBevelBorder; import javax.swing.JScrollPane; import javax.swing.JTable; import java.awt.GridBagConstraints; import javax.swing.JButton; import javax.swing.BorderFactory; import javax.swing.border.EtchedBorder; import java.sql.*; import java.awt.event.*; import javax.swing.ImageIcon; import java.awt.SystemColor; import java.awt.Color; …

Member Avatar for masijade
0
174
Member Avatar for darklich13

I'm having a little trouble with one of my exceptions. The following code is just a simple division of two integers. I have built two exception to handle an InputMismatch and divide by zero. What I want to happen is when there is an exception, I want the program to …

Member Avatar for darklich13
0
257
Member Avatar for Ghosh

Hi, I am new to JSP. I have created a index.jsp page in Netbean. When I uploaded the index.jsp in the server it dint run. Can any one please tell me what all I should upload into server for a jsp page to run? Thank you. ghosh

Member Avatar for Ghosh
0
91
Member Avatar for k_en

i can't understand what problem with the statement below. No error in sql statement and connection. Date dt; dt = (rs.getDate(1)==null?"":rs.getDate(1.trim());

Member Avatar for jwenting
0
105
Member Avatar for sasidharnet

Hello, this is sasidhar. I am going to attend an Inteview. He gave me a simple project using servlets. Inventory management. I am searching for procedure in net. If anyone gives Some useful information regarding this I am very thankful. If I submit this project almost I will get job. …

Member Avatar for javaAddict
0
279
Member Avatar for almualim
Member Avatar for freesoft_2000

Hi everyone, I was wondering if anyone can recommend a good java ide. I have tried netbeans but i find it very confusing to use. I am looking for a very simple but free java ide to use. Can anyone recommend. Thank You Richard West

Member Avatar for sciwizeh
2
355
Member Avatar for marcosjp

Hello! As a college assignment, I'm finishing a small applet that communicates with a MySQL database (through a Java server via RMI - all this is part of the assignment). It's doing all it should except for one thing: in one of the tabs I included a JTable that lists …

Member Avatar for jwenting
0
128
Member Avatar for sreddy_k

Hi All , I am new to this forum and Ajax technologies. let me introduce you first , my name is sam and working as a java developer. I am working in a project where i need to use Ajax . I have a Jsp which have 2 combo's in …

Member Avatar for jwenting
0
69
Member Avatar for warjas816

I'm trying to demonstrate various array operations, and have a couple of questions. I'm having problems with printing out the column and row totals. It only prints out the totals of the last row and last column. It also only prints out the lowest of row 1 and the highest …

Member Avatar for VernonDozier
0
138
Member Avatar for chopram

Hi Guys, I am quite experienced in programming with Java. I have though come accross a small problem, I don't know how to implement the MVC pattern. I understand the concepts of the MVC pattern and I was hoping that someone on this forum could help. I have a model …

Member Avatar for jwenting
0
321
Member Avatar for rayomand

Hello I am new new Java, and would like some help in a exercise I am trying. I would like to know how to get java to print out the "[B]Hundredth[/B]" number in a number. ie in the number [U]1234 [/U]how would I get java to print out that [B][U]2[/U][/B] …

Member Avatar for bugmenot
0
49
Member Avatar for funtoosh

I implemented an applet using netbeans which can load an image.I put the image file both in src/package where the .java file is present and in build where .class file is present.. The Applet get started bt the image is not viewing.Please look through it.Am I put the image files …

0
75
Member Avatar for vasu_atri

hi friends..i want to divide a frame into different parts... how can i do that.....plz help me

Member Avatar for Alex Edwards
0
94
Member Avatar for beelzibub

... what i am trying to do use thr GridChessBoard clas to paint/drae an empty board then return to the program which adds the men/pieces to the board. ... i can get the empty board but it doesn't add the meb/pieces. i don't know why. i suppose i bit off …

Member Avatar for beelzibub
0
144
Member Avatar for K?!

Hello everyone As you can see, this is my first post. We're trying to write a cards game and it uses 12 cards. Someone taught me to put the buttons in an array, which i think is a really good idea. I'm encountering one problem, how do i create an …

Member Avatar for sciwizeh
0
2K
Member Avatar for warrior16

I'm trying to make a Connect 4 game and I'm getting it to work, but I think I'm doing it in a very long and hard way. I think that array were created to simplify code like this, but I'm not sure how to use an array for this occasion. …

Member Avatar for Alex Edwards
0
130
Member Avatar for Futbol10

<HTML> <BODY> <APPLET CODE= MyHangman.class WIDTH=1000 HEIGHT=1000> </APPLET> </HTML> I need to know what to do next below is my java file and I am confused with how to check the words i have in the array and the letters guessed in the word....anything would be useful thanks......and do you …

Member Avatar for Alex Edwards
0
100
Member Avatar for funtoosh

I'm implementing a java code for drawing lines using applets in netbeans using javaapplication 11 package.the java code is in src folder and .class and html files are in build folder at their appropriate positions.... It is giving Error:-- `java.lang.NoClassDefFoundError: DrawingLines (wrong name: javaapplication11/DrawingLines)` on Java Console. the code is …

0
57
Member Avatar for DAKORACING

Hi i am new. i hope someone could please help me. i was having trouble with my java so i removed it from my computer and went to the net to try and reinstall it. no luck. all i get is (nsis error) file corrupt, 1335 error, internal error. i …

Member Avatar for jwenting
0
88
Member Avatar for gl_nana
Member Avatar for CK01

Hi, was wondering if anyone could help me. I'm creating my own little simple tree structure, consisting of several JTextFields. Each TextField is added to a JPanel, which is finally added to a JScrollPane, which is then added to a JFrame. Everything is fine, apart from the position of the …

Member Avatar for CK01
0
102
Member Avatar for Alex Edwards

Ever since I have heard that you can generate classes during runtime (from say, a URL I suppose) and can use java.lang.Reflect to fire methods based on String input, I was wondering how the process is done?

Member Avatar for Ezzaral
0
105
Member Avatar for PL.P27

Hi everyone. Hope everybody is having a fantastic day. I have a simple question and need your advice to guide me towards a solution. My question is, rather, I need help with. I'm doing the game hangman and I currently have a string that contains the secret word that is …

Member Avatar for Futbol10
0
131
Member Avatar for k_en

i get time field from a database table. But may i know how to convert it into 24 hour minutes and second. simpledateformat("hhmmss") is not working. Is there any other simple java method doing it?

Member Avatar for masijade
0
170
Member Avatar for dipankar.

hi, i tried to connect to the database using simply applet, but it showed some error message, i m bit confused whether or not is that possible..

Member Avatar for jwenting
0
96
Member Avatar for Futbol10

Please help i have added buttons but they aren't how i want them.....how do i change the letters to squares and how i want them? and at the very bottom i am confused with what to do next thanks for anyhelp import java.awt.*; import java.awt.event.*; import java.applet.*; import javax.swing.JOptionPane; public …

Member Avatar for Futbol10
0
111
Member Avatar for beelzibub

[ICODE]package chessbuard; import java.awt.*; import java.awt.event.*; import javax.swing.*; //import javax.swing.event.*; import javax.swing.border.Border; class ChessBoard extends JFrame implements MouseListener, MouseMotionListener { GridLayout Board = new GridLayout(8, 8); int drag1, drag2; int xMove, yMove, labelw, labelh; JLabel label; String[] manrow = {"Pawn0", "Pawn1", "Pawn2", "Pawn3", "Pawn4", "Pawn5", "Pawn6", "Pawn7"}; String[] manrowx = …

Member Avatar for PoovenM
0
164

The End.