32,199 Topics
| |
How do I grab the output sent to the console and save it to a .txt file? Thanks in advanced. | |
Hi I'm developing a game that includes a chat room for four people. All the programs must be the same, I don't want one server program and three clients. Here's what it should do [LIST] [*]Someone creates a chat and invites three more there [*]The chat starter will become the … | |
hello am experiencing two problems: 1) am getting this error and i do not know what it means: Hello.java:1:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘java’ 2) how do i get the header file javaCompilor.tab.h, i already have a javaCompilor.tab.c file | |
Hy , I have a problem with the TableModelListener , my application should print out the cell were the content has been modfied but it does notheing. Here is my code. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.table.*; import javax.swing.event.*; /** * * @author Pilu */ public class Afisare … | |
Hola. so, im making a simple program right now to work on my java skillz, and just for fun in general (im pretty new to java). so, i was wondering, whats the fastest way to find the maximum number in an array of STRINGS. because i tried parsing the ints … | |
I'm doing a small GUI program it is that I have two buttons when I press on any of the buttons it displays a dialog box saying which button I pressed .One of the buttons is a text with image displayed on it . my problem is that an exception … | |
Hi I am working on a personal project for a friend of mine.The requirement is to display the data fetched from a hand held device namely the product barcode and the quantity.I have followed the manufacturers guide and have flashed the device with a sample program that records the barcode … | |
Hello, Can anyone please tell me how to divide a 3D Cylinder in equal parts. A Cylinder has three fields as defined in the API, TOP, BODY, BOTTOM. I have divided my cylinder in these parts. Now, i only want the Cylinder.BODY (i mean the surface of the cylinder) to … | |
Hey guys. I am trying to sort a list that has been populated using a random number generator. I am trying to use collections to sort the list but I am not have any luck. I have been stuck on this for a while and would greatly appreciate any help … | |
Im building an application to store and manage Student Marks and Im gonna use Java Persistence (JPA) to do the Database work for me. So Ill be retrieving the data from the database into Objects. And then Ill want to display the Data in the objects as a JTable. And … | |
Sir, i m developing a new web browser as my project in java.I have done the initial coding but when i run google homepage on my simple web browser,it shows me some html code online.how to get rid of this code?.i have also attach the view of this problem,plz look … | |
I've created a jar file like this: jar cfmv Manifest.mf RoboPlot.jar RoboPlot.class ImagePlotter.class The manifest.mf file looks like this: Main-Class:RoboPlot For some reason, when I use this command to run it, java -jar RoboPlot.jar it tells me that the main class could not be found I also tried this: Manifest-Version: … | |
hi you know I'm doing a project on java instant messenger. I was thinking how would i implement it. should i use a seperate class for each component of the messenger. for example one class for its gui, one class for its chat diaglog, one for it jtree panel(to show … | |
hello friends, i have two frames suppose A and B, when i open or make visible frame B from frame A by making a new object of frame B, I make invisible frame A by " [COLOR="Red"]this.setVisible(false);[/COLOR] " when i done with work in frame B, i need to close … | |
Hello. Like as the title sayes. Im trying to edit key values in a Map/hashMap/treeMap. For example: [CODE] public class MapExample { public static void main(String[] args) { Map<int,String> mp=new HashMap<int, String>(); // adding or set elements in Map by put method key and value pair mp.put(12, "Two"); mp.put(11, "One"); … | |
Hello everybody, I'm developing my program and I need to send over network encrypted data. I can do this but when I call method responsible for decrypting I receive null. It seems that there's something missing in my code and I don't know what.Let me show you my code: [code=java] … | |
the following program is to print all possible sum combinations of a number for example 6=1+5,2+4,3+3,1+1+4,1+2+3 12=3+9,4+8,5+7,.......,1+1+2+3+5 but i m not getting any output...maybe there's a problem with proper ending of loops pls help[CODE]import java.io.*; public class sumpermutations { public void main()throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int input,i,j,d=0,s=0,num=0,d1=0; … | |
Hey, everyone. I'm just here to ask a really simple, quick question. Is [URL="http://www.betterprogrammer.com/"]Better Programmer[/URL] accurate in the sense that it truly tells you how good you are at Java programming? Also, I am 14 years old, and what would a score of 93% be (as in terrible, bad, average, … | |
Hi, I've noticed that in eclipse when you give "Exception" and click on exception it is redirecting to that link.. But actually according to java even if we give keywords or anything inside quotations(" ") it shouldnt be considered right? So is this a bug in eclipse? Thanks | |
I am in a Java Programming class and our instructor has just assigned us our 1st project. The project would not be a problem if I understood the Java Programming Language, from the beginning of my Computer Science Schooling I have yet to understand this code and now that I … | |
I am trying to make a snake program The code I currently have looks like this [CODE] import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.util.*; public class SnakeG extends JPanel implements KeyListener, Runnable{ private Vector<Point> snake = new Vector<Point> (5,2); private Vector<Rectangle> snakeRectangle = new Vector<Rectangle> (5,2); public void startGraphics … | |
I have unicode for Simplified Chinese. I would like to send an email with Chinese subject and content. The content works fine-which converts unicode to Chinese, however the subject alwasys shows unicode instead of Chinese. Can anybody help? Enclosed you can see a part of my code: [code] session = … | |
am about to start software engineering but am not sure of a better programming language to take..help | |
I know this may be easy to many of you but it hasn't been so for me. I want to apply some exception handling in this simple code. My instructor skimmed over this. If I were in the world of visual studio I would have applied some isNumeric, and some … | |
I've been trying to get this to work. It complies but my char array won't display anything. 'cipher2.in' contains this: 3 L E ABCDEFGHIJKLMNOPQRSTUVWXYZ Output: Cipher Code: Cipher Text: ABCDEFGHIJKLMNOPQRSTUVWXYZ Cipher Key: 3 [CODE]import java.util.*; import java.io.*; public class Test2 { public static void main (String[] args) throws IOException { … | |
I would like to know what "Invalid Stream Header : 61646F62" means? It happens when I run my program. Thanks. :) | |
i want to make an application with JAVA in which there are registered users. so users can put data in database, can see data from database. my application is there are different doctors from different places and they have common patients( clients) that they care about patients. so they want … | |
I am trying to make a snake game and I am wondering how I could get an element of an vector and then use the number for the y coordinate like when using ararys lets say the x element I am using is 3 then I could type in arrayY[3] … | |
I am making a simple game and I cant seem to get the line to center. I would like it all to be in a column and centered. I have this line of code that is not centering [CODE] JLabel numberOfChangesLabel = new JLabel("" + totalChanges); pane.add (new JPanel ().add(numberOfChangesLabel)); … | |
| I have a few JSpinner(s) and I'm trying to change the button sizes. I know how to change the font of the SpinnerModel(s), but not the button sizes. Can someone please point me in the right direction? TIA! |
The End.