36,051 Topics
![]() | |
How to set white back ground for disabled combo box??? I already tried setBackground.... But it didnt work like textfields. | |
any operation with text area is not working,,,cant find bug... [CODE]import java.io.*; import javax.swing.JMenu; import java.io.FileWriter; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JFrame; import javax.swing.JTextArea; import javax.swing.JSeparator; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JScrollBar; //import javax.swing.JPopupMenu; import java.awt.Container; //import javax.swing.JFlowLayout; import javax.swing.JScrollPane; import java.awt.Color; import java.awt.Font; import java.awt.FlowLayout; import javax.swing.JFileChooser; import javax.swing.JColorChooser; … | |
please Help me out, i'm new in java and i want code for following program. write a program that takes a series of email addresses as a command-line argument and, after parsing/processing the input, display the addresses separately and in alphabetical order at the command window. For example if the … | |
[COLOR="red"]Hey guys[/COLOR] Icame across a weird situation wherein I had to use System.exit(1) in place of return, although the output in both cases should be same, the output im getting with return statement is giving me the wrong result while the one with System.exit(1) is giving me the correct result … | |
Hello folks. I am stuck in a problem where I must pair objects of an array with unique partners. I have one array. I must pair each element to each other. Incorrect pairing algorithm would result with repetitions, and pairing with itself. e.g. [CODE]String[] codesArray = {"A", "B", "C"};[/CODE] For … | |
Hi, can someone help me? I have two Jframes: Frame and MainFrame. My problem is they both show at the same time. If the login is correct MainFrame opens and Frame closes. [CODE]import javax.swing.*; public class Main extends JFrame{ public static void main(String args[]) { //Frame Window /Login Window Frame … | |
hi i am working in project that i have multiple frame so i used with my project static variables but i cannot use these array with my table in another frame too many exception is appered and my frame that cotain the table doesnot apper how can i solve this … | |
shifting from vb.net to java gives me a hard time!.. I have a little background on java.. but not on Java + Database.. anyone can give me samples or tutorials? I started googling some but hell I can't understand it | |
Hey Guys im newby to Java! Help Needed! Please Help Needed! This is How it Goes! DAO.java [CODE] private BookRecordViews populateBookObject (ResultSet Results) throws ClassNotFoundException , SQLException { int BookID = Integer.parseInt(Results.getString("BookID")); String BookName = Results.getString("BookName"); String DateOfArrival = Results.getString("DateOfArrival"); String DateOfPublish = Results.getString("DateOfPublish"); String AuthorName = Results.getString("AuthorName"); int StudentID … | |
Can anyone help me !!! i need to create a library system using java and i don't know where to start so can anyone suggest steps on how can i create a successful application . | |
can you help me with sorting array??how can i execute it??thanks!! | |
I'm currently making a program that list all the perfect numbers from 1-1000. and list also its factors. heres my code. [INLINECODE] public class perfect { public static void main(String[]args) { int sum=0; int x=0; for(int num=1;num<1000;num++) { for(int factor=1;factor<num;factor++){ x=num%factor; if(x==0) sum=sum+factor;} if(sum==num){ System.out.print(num); System.out.print("The factors are "); for(int … | |
hello frndz, i was trying to implement a client server communication example.her's the code [CODE] import java.net.*; class client_server_communication { private static int client_port=4444; private static int server_port=4476; private static int buffer_size=1024; private static byte[] buffer=new byte[buffer_size]; private static DatagramSocket ds; private static byte buff[]=new byte[buffer_size]; public static void server() … | |
I updated JDK/JRE to the latest Java SE 7 version but I was wondering what's the environment path to it. I remember Java 6 Update 26 used to be C:\Program Files (x86)\Java\jdk1.6.0_26\bin So would Java SE 7 be something like C:\Program Files (x86)\Java\jdk1.7.0_00\bin I wasn't quite sure because this version … | |
Hi all! I want to start making apps for android phones. The problem is that I have installed Android SDK, JDK 7 and eclipse, but failed to complete the install of the ADT plugin. I have install the plugin, but I can't configure it. the guide on android developer saids: … | |
hey, i have a JTextField, the values entered in to the text field should be added to one dimensional array after a click of a button. its an int array. the values entered into the text field are separated by a comma i.e. 12,23,2,0,1 how am i meant to separate … | |
I have googled alot exampled to create auto complete jcombo box, found many libraries also codes but they are pretty much complex, has any one idea to create this as easy as possible???? | |
After login (if succeed) a user will see the result of statement "select test_column from table_test " execution. table_test is the only table of database 'test' which i have created in NetBeans 7.0.1. test_column is the only column. class '[B]MySQLTest[/B]' creates the gui for login , connects with the database … | |
Hi, I am trying to write an applicaiton which will run 2 zip files (one after another) with minimum user input. I can get the file to run but it is then waiting for the user to select "Unzip" to unzip the file. I was wondering if there is a … | |
[CODE]private String [][] personalDetails() { logger.debug( "personalDetails()" ); String personArray [][] = { { "John", " Muray", "1-10-1982" }, { "Peter", " Kamau", "2-5-1987" }, { "Mary", " Wambui", "8-5-1988" }, { "Bethu", " Kips", "8-8-1987" }, { "Cetera", " Omosh", "2-5-1987" } }; return personArray; } /** * Demonstrates … | |
i m wrking on a inventory mgmt system and the requirement is when user logs in all the expired medicines will be displayed | |
hi I want to resize the panel that is on the NORTH/Button1 (PAGE_START) of the Border layout. how can I get broad panel?? Is it possible or not?? [ATTACH]22085[/ATTACH] | |
Hey everyone, I have a couple of Vaadin projects deployed as portlets in Liferay and they work great, but when I add the Vaadin compiler portlet I receive an error (displays twice in each portlet) within my two deployed portlets. I have compiled using the Vaadin Widgetset Compiler portlet after … | |
Hi! I'm trying to send data from a mobile application written in Java ME, to an ASP.NET website connected to an SQL server. I tried to open an httpconnection output stream in the Java ME application, and send the data in a POST to the website. The problem is I … | |
I am developing a desktop application in Java using Netbeans and MySQL database.Now i want to distribute the software.How to distribute the software along with the database?What is the total procedure.Should i use any software for this? | |
Hi everyone! I need some help in my programme. I have an error message: "error: int cannot be dereferenced" at line 134. Could you help me solve this problem, as I do not know what it means? Many thanks. [CODE]/** * @(#)PrizeCollection.java * * PrizeCollection application * * @author * … | |
[code]/* * @author BKChepkwony * Created on 24 Aug 2011 */ package com.jjpeople.arrays; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Logger; /** * Class demonstrating usage of arrays * * @author BKChepkwony * Created on 24 Aug 2011 */ /** * @author BKChepkwony * Created on 24 Aug 2011 */ public class ArrayExample { … | |
I need to write a program for drawing concentric squares. Program with the first click of the mouse determines the x and y coordinate of first corner of the square. Then, the mouse moves and the second click determines the point of the opposite corner. I wrote the first part … | |
Problem: solve the following Source of SHORTEST DISTANCE path of A,B,C,D,E,F,G. I already did link the strings of dots of ABCDEFG and made a polygon which is the other objectives, my only problem now is calculating the source of the shortest distance part of A,B,C,D,E,F,G. Am using net beans. Guys … | |
I am making a program of vehicles and i have to make a car garage class. In the class the max amount of vehicles that could enter are 20 or 25000 lbs. I wrote the charstack and the pop() and the push() but dont know how to limit it to … | |
I am new to computer programming. Could someone explain me this code... s=0; for(i=0;i<5;i++){ s=2*s+i; } And how did it have the output 0,1,4,11,26; | |
Good Day... the problem is that the Jbutton is not displaying in my Jpanel. can you help me, this will help me a lot, Thanks Here's the code [CODE] import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.net.URL; import javax.swing.JButton; import javax.swing.JOptionPane; public class GameBoard extends JPanel implements ActionListener { JButton … | |
Sir, I am not getting any fault in my code but the code is not executing with the demands which I have. I just want to register 2 values into the database using jsp , if the username is present in the database it will show User already exist otherwise … | |
what is the difference between java 1.4 and 1.5 | |
Hi, I am biginer to java. I need to make a class method that retrieve specific row values from database (using ID), and then to make new class instance using those values (as field properties). I wrote code for the first part(getting row value from ID), but I need help … | |
I deal with vb.net, but i want to take a look at java. Whats your advice on things to expect? | |
Hi All, I have the function as window.onbeforeunload = alertChanges; and I only want to execute this only if the session is not time out. So if the session is time out I want to skip this call. Any idea? Thanks in advance, KP | |
Hi everyone, I'm new to Java and a relative newbie when it comes to programming in general. I've been learning a bit from some Youtube tutorials dealing with Java basics. They've been very helpful and I've been able to create a basic game setup with my new knowledge, with a … | |
Hello! Here and example that we can add manually a path on windows: [url]http://1.bp.blogspot.com/_NtoTtHZadHE/S0SLPiJo-2I/AAAAAAAAAIg/GyoW0pPEW-g/s400/qt-mobility-windows-env-path.png[/url] I need to add new path on the system (or user (it does not matter) ) from my Java program (no problem if my java program must start with administrator privilages). Thank you! | |
Does anyone know how I can display the contents of the windows 7 recycle bin using java? | |
hey, i have developed java application in netbeans 7.0. the application connects to the mysql database in the same computer. what i need to do is make a stand alone application that would not require netbeans in order to be executed, also i want the database to be a part … | |
Suppose that I have a text file and I want to insert a character in each of its line at some position. Then can I insert a character there without rewriting all the characters ahead of that position with one position ahead. Like, if I try to do that in … | |
Hi all, I need to access mysql db from multiple servlet i,e need to insert the value from one servlet and retrieve from another servlet.i passed the connection variables through web.xml file. i need to get those variables from both the servlets to connect the db again.how to achieve that … | |
Hi every one, I`m using Net beans for my latest project and I downloaded Jthatoo.jar look and feel file.now i wanted to change the look and feel theme in my net beans project.How could i do this? | |
Hi, I need to write a pontoon game. So far i wrote the Deck and Card classes. When i try to print the toString in my deck class i get "Deck@6612fc02". What i wanted is to print 13 cards on each row. May you help me thanks. [CODE] public class … | |
Hi, my name is kanyapat. I am Thai people. I found this web sit by searching Google. I become a member because i want to find some answer. I learning in information technology and learning java programming, jsp, html, know a little bit of css, xml, php. And..... I AM … | |
name raj city delhi weight 70kg hight 176cm hair black age 27years education IT I want to start java learning but how to begin i don't know.so all are requested to initiallise this topic . | |
I have been playing about with some code tonight and trying to add things to it, so i know it wont make sense when talking about cats and dogs, females and males and music, I run this code and the GUI comes up I click add CD and the required … | |
is this possible create different applet page..and link with one page to another... if click button present in the one applet page... it will redirect or shown another.. (like html page ) is there anyway to create fullscreen application in java??(in applet or frame)... for connecting database applet based application … |
The End.