32,204 Topics

Member Avatar for
Member Avatar for sktr4life

this is the oracle GUI [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class OracleGUI extends JFrame implements ActionListener { // Define constants public static final String GET_QUESTION = "I will answer any question. Let me know yours.\n" + "Type your question in the following and hit Submit."; public static …

Member Avatar for sktr4life
-1
180
Member Avatar for abhishek23

hi guys well I go to my dos prompt and invoke the compiler with the javac command but I always get the following message: javac is not recongised as an internal or external command,operable program or batch file I would like to know why i am gettin this message and …

Member Avatar for jasimp
0
291
Member Avatar for hezfast2

Hello all, I've been writing a multiple choice question version of the game Hangman. I've got it done except for stopping already asked questions from appearing again. I've got the 'asked' question numbers (the questions and answers are read in from a file into various arrays) added to a vector …

Member Avatar for VernonDozier
0
104
Member Avatar for Magda

Hi all, I am currently revising for an exam which will cover all the basics of object-oriented programming, it was going quite well until I met Collection :) I have got two questions to which I have started writing answers to but got stuck...Could someone please have a look at …

Member Avatar for Ezzaral
0
312
Member Avatar for engrasi

Hi I want to make a weather reporting project . the requirements of project are as follows There are there sensors ie 1. Sensor for Weather 2. Sensor for Humidity 3. Sensor for rain All the data sensed by these sensors want to display on a web page where there …

Member Avatar for peter_budo
0
86
Member Avatar for Scruffstone

Hi there, I'm trying to open up a text file read info from it, alter it and write back the alterations when a user clicks on the save button, but I've hit two issues:- 1) I can't open the file for write access as I don't have permissions - can …

Member Avatar for Scruffstone
0
233
Member Avatar for Triggerhappy41

Hello, I am trying to learn a few new things with the Java API and am wondering where to get started. As of late I've been interested more and more in trying to construct bots, and I thought a good first step would be to try and create a minesweeper …

Member Avatar for jwenting
0
86
Member Avatar for VernonDozier

Hi, I am writing a program where I want the user to be able to e-mail me feedback, so I have downloaded javax.mail and I'm trying to send myself an e-mail to test it out. I have Yahoo Mail Plus. Below is my code, which I tweaked from one of …

Member Avatar for VernonDozier
0
843
Member Avatar for missy108

Hi I am in my first programming class. Programming in JAVA. I have found it frustrating yet challenging. I am in desperate need for help when I sit here for three hours and know that it is something so simple in my source code that is wrong yet so hard …

Member Avatar for selfhelpebooks
0
117
Member Avatar for C41R0

i think i've chosen the longest way to add the deletion onto my system, is there any other way which is more efficient ? and im wondering why only mPane.JTextFields are working, but the rest like lPane.JTextFields aren't working ? [CODE=JAVA] . . menuItemDelete = new JMenuItem(); menuItemDelete.setText("Delete"); menuItemDelete.setMnemonic(KeyEvent.VK_D); menuItemDelete.addActionListener( …

Member Avatar for Ezzaral
0
182
Member Avatar for C41R0

can i have more then one JTextArea and JTextField for one inner class (MyUndoableEditListener())? [CODE=JAVA] . . MainTabbed mPane = new MainTabbed(); . . . mPane.area.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.locField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.dateField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.ndBuddyField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.depthField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.firstBuddy.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.weightField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.timeInField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.tOutField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.startTimeField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.sTimeField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.bTimeField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.startField.getDocument().addUndoableEditListener(new …

Member Avatar for C41R0
0
189
Member Avatar for C41R0

currently i am facing a problem for these method. when my program copying or cutting a selected text and paste to another selected area, unexpected result, it paste the selected text to all of the fields and areas of my program. is there anyway to check current selected area or …

Member Avatar for C41R0
0
115
Member Avatar for beelzibub

[ICODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author beelzibub */ import java.awt.*; import java.awt.event.*; import javax.swing.*; class ChessBoard extends JFrame implements MouseListener, MouseMotionListener { GridLayout Board = new GridLayout(8, 8); GridChessBoard brd; int xMove, yMove, …

Member Avatar for beelzibub
0
142
Member Avatar for deineMutti

Hello Java powers that be, I've implemented a JTable that I can add/delete rows of information to/from, but I can't actually see the changes until I do something stupid like resize the columns. I currently use a "fireTableCellUpdated(row, col);" doo-hicky in my AbstractTableModel(whenever data is changed) that I thought would …

Member Avatar for woo37830
0
16K
Member Avatar for suriname0

Hello! I have a little problem. I am a relatively new Java learner, and I just finished a little project for a friend. I use an IDE, called JCreator, that solves basically all of my needs without ever having to touch the command line. Since all the coding I've done …

Member Avatar for suriname0
0
130
Member Avatar for parthiban

Hi all, I have searched about difference between KeyPressed and KeyTyped Events but still I'm not clear about that . One thing I have found is Keypressed is triggered first than KeyTyped . Please clarify me when these are triggered exactly . Which is appropriate to use for which purpose …

Member Avatar for javaAddict
0
419
Member Avatar for abhishek23

hi guys i just installled java from [url]http://www.java.com/en/download/help/download_error_codes.xml[/url] i have installed the java succesfully and now i want to write some programs in java jst to learn the language but i dont know if there is a compiler with java also i mean as there is a borland c++ compiler …

Member Avatar for jasimp
0
120
Member Avatar for CK01

Hi, I was wondering if anyone could help me. I'm trying to find 2 unicodes so I can display the join ('bow-tie')and semi-join (like half a bow tie!) operators in java (used in relational algebra for databases). Anything I find on Google doesn't work (I just get a square!) I've …

Member Avatar for CK01
0
105
Member Avatar for Software guy

hi , i am tryin to put all the upper case alphabets in an array list and , then i want it to print on screen , but for some particular reason i am getting no result but a strange output. here is the code and result: [code] void buildAlphabet() …

Member Avatar for Ezzaral
0
127
Member Avatar for nelson13

I'm writing a program were I have to give the user the option of starting again.........so I ask 'Would you like to add more votes (y/n)?' then I scan for the answer using the line : 'another = scan.nextLine();' The program compiles ok but when i run it. the program …

Member Avatar for Ezzaral
0
84
Member Avatar for ChuksPierr

I understand that i'm mingling with the gurus of this language. I'm into computer hardware and I want to start programming too(you know no knowledge is lost)I've done a little bit of C and C++, I'm new in Java programming and i want someone to guide me through in this, …

Member Avatar for Ezzaral
0
143
Member Avatar for ajithraj

Hello... I need to add a special character to a string as follows.. String ok = "I am the man"+specialChar; However, when I print "ok" later,without taking substring, I just want to see "I am the man " with the special character but will be invisible and will have just …

Member Avatar for javaAddict
0
107
Member Avatar for madhavipoudala

please help me. I need help from you all. I enable to excute the servlet program . the deployment process is also correct , i am doing with the tomcat server, i had set the class path also. the compliation of the java file is also complied, only while excuting …

Member Avatar for peter_budo
0
130
Member Avatar for cocotugo

ok im trying to make a program for solving square equations by the general formula but for some reason i cannot get it to solve the equation so if anyone can help me this is my code: va= Integer.parseInt(a.getText()); vb= Integer.parseInt(b.getText()); vc= Integer.parseInt(c.getText()); vac=(4*va*vc); vbc=(2*vb*vb); vac2= (2*va); vb2=(-1*vb); raiz = …

Member Avatar for cocotugo
0
93
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
151
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
113
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
48
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
127
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
120
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
304

The End.