36,051 Topics
![]() | |
i am creating a text editor using java swings concept this is the code i am using to save a file jfr.setTitle(fname.getName()); FileOutputStream fop=new FileOutputStream(fname); fop.write(jta.getText().getBytes()); fop.flush(); fop.close(); where fname is the name given in save file chooser bye the user jta is the text pane in which the text … | |
Hi, This will show you how to create a login form using swing. Please be aware that this form does not connect to anything. ( eg. A URL or a database) This is just a little advanced example of one of the many things you can do in swing. A … | |
Hello, i am a total newbie to jogl and java and i'm trying to use new JOGL package that consists: javax.media.opengl.*; when i write a code on netbeans, it doesnt show any error, but when i run the program the following error appears in the console: [COLOR="Red"] run: java.lang.NoClassDefFoundError: com/sun/gluegen/runtime/DynamicLookupHelper … | |
The form consist of three textfields and two buttons(add and show buttons). User enters the candidate first name and last name and the respective number of votes received in textfields.On clicking the add button the candidate object is created and the candidate object is added to the arraylist object. On … | |
Hiz every1. i m beginer, i have to make a program of PERFORMANCE APPRAISAL. Please any1 can help from where should i take start .. Waiting for your replies | |
how can i create a magic square using jcreator.. help me please.. | |
Please explain about the Right and Left shift operators in java.. I am new to programming concepts.. So please explain me with examples.. Thank you | |
Hi, Iam very new to XSLT and XML. I am trying to invoke a javascript function from inside my xslt documen. The javascript snippet is as follows: [CODE] <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:js="urn:custom-javascript" exclude-result-prefixes="msxsl js" > <msxsl:script language = "JavaScript" implements-prefix = "js"> <![CDATA[ function compareCsvs (firstString,secondString) { var firstArray=firstString.split(","); … | |
Thanx for the before now i've got new problem here i try to run it in a localhost it worked when i've hosted the web that i created before. got : Http Status 500- org.apache.jasper.JasperException: Unable to compile class for JSP: could you tell me what are the problem that … | |
Hello, I have a school assignment to build a 2 minute countdown timer in java. Gunjannigam managed to assist me in creating the functions. My code for secondCount, I have built a function so that I can adjust secondCount to a number and it will change the timer. When secondCount … | |
i made a web service in netbean and now i want to monitor the request made to use this service from client side. now how i embed http monitor activity into this web service to check the requests. | |
Having problem networking two computers with a game I designed. I am using java, i have written a file that will comunicate with the server as its own thread, and it works fine with the server application when run on its own. However, when i run the client thread within … | |
hi.. where can i get the java source code for multiple regression... | |
Ok, I got the assignment from my CompSci teacher to write a program that converts a string of an infix operation to a postfix one and it has to use a list and stack. The class that we have to write, Postfix, has to include a conversion, parsing, clear, and … | |
HELLO ! first i shown all records in jtable ... after i process(read from it and insert into DB) one record at a time.. while processing i need that particular row in yellow color... if the row completed (inserted in DB) THEN the row become GREEN.. HOW TO DO...I TRIED … | |
hello! i need to create JTable which swing string and animated gif image also... how to put animated gif and data(string) in Jtable cell dynamically... can you give any referel link or codes... i tried lot but vain... | |
Hi friends, This is regarding synchronization in Thread. If a block or method is synchronized, which object is said to be synchronization? | |
HI there, so my program so far only has buttons... can someone modify my program so when i press a button there will be another popup page, and so on? thanks ! p.s. my program right now only has buttons but the buttons does not do/go anywhere. [code]import javax.swing.*; import … | |
I'm having some trouble with this. Since I'm manipulating files I SHOULD already know how to do this... however I do not. I have searched the internet and could find nothing that helps :( When a username is specified by using the -u switch the username should be saved to … | |
HI, I am studying java, and I am trying to input a value into, then It goes to a for loop. I did the for loop part. but I am having a hard time on the input. thanks | |
hi, i have an array of JTextPane's. console 0 uses array[0] jtextpane to see their chat. console 1 uses array[1] jtextpane etc. up to them how many jtextpanes they use/consoles they create/open. they can move different chat channels to different consoles or have all channels go to one. lets say … | |
Hi all please can someone help? i have to create an exception class (which i think i've done) and then throw it from some helper methods. i've tried allsorts to get this exception to work, and i just cant see what i'm doing wrong.... as this is an assignment i … | |
I'd like to know if there is an alternative to "this" and "super" from Java in PHP. Greets, K?! | |
Hi, My code compiles and runs but the GUI will not display. I have tinkered with it but cannot get it to come up. Someone said I may be miscalling my GUI in this code, help? Thank you. [CODE]import javax.swing.*; import java.awt.event.*; public class Application_MainRunInv extends JFrame { private JTextArea … | |
which one is the best compression algorihm in java for compressing data | |
hi how i can do this by StringTokenizer Is there a more easy efficient method? | |
Im currently working on a project where i need to read a text file containing a list of users and let it be stored in a database. Here is my text file: headers(ID number, LastName, FirstName, MiddleInitial,Course and Year): 2070939 Carter, Billy Joe K. BSIT 4 2070123 Daniel, Michael Ericson … | |
![]() | I'm having trouble getting the program to loop back to the menu once I have created a new computer/customer. Once I figure it out I can do it for all the functions in the menu. This program is not yet complete but any guidance as to why my program won't … ![]() |
![]() | Hi, I wasn't sure where to post this thread... I am looking for an ALREADY developed social network that uses JSP/Java with Tomcat/Glassfish... Something like: [URL="http://boonex.us/"]Boonex[/URL] (But not PHP). It can be open source or purchasable (If there is such a word)... Thanks, -Ashton. |
Hi guys just wanted some clarification on two issues. Nested Loops, I just want to clarify how i should read these for example: [CODE] public void nestedForLoop() { int i = 0; int j = 0; for (i = 0; i < 10; i++) { for (j = 0; j … | |
Hi guys do you know of any sites where i can go through some java questions in preparation for a java exam. In the sort of style for example where you are provided a for loop and which isn't in the normal format and then asks you what would x … | |
I am now making the huffman algorithm. I have generated the tree but I cannot generate the codes.. please if anyone can help tell me how? [B]This is the class Node[/B] [CODE] public class Node { private Node left=null; private Node right = null; private Node parent = null; boolean … | |
hello guys, could you please explain me when do we use these: int[][], double[][], float[][]? i mean, why there are two brackets "[]"? thanks | |
I atached the image with the webpage, do anybody knows how to do to show an advertise like in the photo after the page has been loaded, let's say after a few seconds, it seems similar to the lightbox.js but it's diferent. Can somebody help me with some ideeas ? … | |
Hello people, I was recently working on some homework for my class, and I have a error on my code. First, I will tell what I need to do. What the program asks for is for a person to give a 3-number digit(N), from 100 to 999. After that, the … | |
So basicly i am trying to create a 2 dimensional array for my snake game but i am haveing some trouble: [CODE] public static Tile gameField[][]; [/CODE] [CODE] gameField = new Tile[FIELD_HEIGHT][FIELD_WIDTH]; for(int i=0;i<FIELD_HEIGHT;i++){ for(int j=0;j<FIELD_WIDTH;j++){ gameField[i][j] = new Tile(); } } gameField[1][1].snake = false; gameField[1][2].snake = true; System.out.println(gameField[1][1].snake+"_"+gameField[1][2].snake); //Prints: … | |
In the class diagram, we'll put attributes of our class in the section at the middle of the class' name and methods right? I'm wondering, are we also put instantiated variables in there? Like the variables instantiating other classes and buttons? | |
hi, I was wondering how can i make a new frame after the password is entered(if it's correct). Like if the user enters the correct password than another brower/frame will open. This is the program: [code]import javax.swing.*; import java.awt.event.*; import java.awt.*; public class password { private static String password = … | |
Hi, so I want to make this kind of "webpage" thing with GUI and how can go to another "page" not open another frame when I click on one of the buttons. Like in my program one of the buttons are "Sign In" and when the user clicks it I … | |
hi for all,i tried to write the memory game code but i got mistakes,can any body check them for me please? here is my code: [code=java]import java.util.Random; import java.awt.event.*; import java.awt.*; import javax.swing.*; //some things i didn't use in this game,i was just tryin ^^ public class Memorycard2 extends JFrame … | |
Hey I'm working with Java and cant seem to get my calculater working, Im trying to use my actionListener to make it all work.. Please help:) [code]import java.awt.FlowLayout; import javax.swing.AbstractButton; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JRadioButton; import javax.swing.JTextField; import javax.swing.text.JTextComponent; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class … | |
Alright. I am building a chatroom client. It's using a JFrame as the main window. I wanted to add a feature, to when the window is minimized, I can hide all the components and paint the name of the client in large font. I want to do this, so in … | |
so I have 2 methods, 1 with an argument the other without command_hello(String sender); command_hello(); I am trying to invoke the method using just their name: command_hello I can do this by using the following for the method with no arguments: getClass().getMethod("command_hello").invoke(this); Works! Great! But the moment I try getClass().getMethod(cmds.get(cmd)).invoke(this, … | |
Hi everyone, basically the problem i have is; when the program loops around for the 2nd, 3rd etc it resorts the swip back to the inital value of 1000, rather than what i want it to, the ewip from the previous day. I have underlined/highlighted the two bits i mean. … | |
Hi, when i run my java program it has that little java coffee cup image in teh task bar. All my apps have this. i guess its default. How do you set that to something custom? i cant seem to come up with teh proper name for what that image … | |
hi i want 2 devlop d online software test engine in jsp pls giv me some direction 2 start d project\ thanks | |
I have seen many JavaScript applications of this being done on the internet and would like to create on designed on Java. As I am new to this, I have no clue on what to do. I have a fair idea and so far I have this: package dice_game; import … | |
Hi all, I'm new to Java and going through a steep learning curve. Every now and then I'm getting dead stuck, so your help is immensely appreciated. So, here's the problem: (with Java NetBeans IDE) I have a JFrame form, and in it 4 JComboBox'es. Also a JButton titled "Enter". … | |
hi iam working on a project and i want to sent and access data in MS Access using jsp so, Please tell me how can i do this | |
Hello again I made a new user name because I couldn't access using the previous one; I don't know why!! Any way this is the java code of the memory game (solitaire) . Actually I compile it and run it, but it didn't work !!!! could anyone pleassse help me … |
The End.