If you want functionality for looping the values of the JSpinner use this class:package mseries.utils;import java.util.List;import javax.swing.SpinnerListModel;import java.util.Arrays;/** * Title: RespinnerListModel * Description: Extends SpinnerListModel with looping functionality. * * @author ...
I have several data object with different length and I want to print them nicely in columns. In C++ and C, printf can handle different formatting easily with the formatting char. I'm using a java .library by Horstmann that implements printf.Since I'm not up-to-date with the latest Java, I'm ...
Hi,I'm facing a problem while executing a shell script from a jsp page.I'm using Runtime.exec() function.It's working fine for single statement scripts.But if the script consists of any database processing and some other processing statements,it's not returning the correct exit status of ...
I want to know how i can use The Dictionary in The programs pleas get me an Example
781 byte By
dev_phan at 2007-11-26 12:16:42
Hi,I am using the following code for getting an ArrayList into a JSP using form bean. The code is poulating entire ArrayList at a stretch. I want it to display one by one. VCan u pls help me in this.Thanx in advance.<logic:iterate id="selectionCriteriaForm" name="selectionCriteriaForm" ...
Hello, I was hoping someone could direct me to a good guide on reading objects into an arrayList database from a file using serialization.Thanks
620 byte By
gehel at 2007-11-26 12:16:45
I'm having a problem with a JComboBox inside a GridBagLayout. The general layout is a GridBag with labels / combo / textfields on the first line, a large table in a scrollpane that takes all columns on the second line, and a few labels / combo / textfields on the third.As long as the combo on ...
260 byte By
yael800 at 2007-11-26 12:16:47
Hi,How can I Listener every chane value in the jtextfield with out typing enter?I want to builld search to my list...(wene user typing on letter/s I whant to display in my jlist only this starting lettars...)Thank you,Yael :)
paint(Graphics g){repaint();g.drawstring("Inside Apple");}When i wrote my applet i called the repaint from a separate thread.Then i tried calling repaint from within paint just to see the outcome.From what i have read from the tutorials repaint calls paint().With regard to this i had expected ...
7352 byte By
_Robb_ at 2007-11-26 12:16:50
As it is right now all the Textfields are gigantic and not a small rectangle as I want to...This doesn't do what Iit's told:JTextField consumer1 = new JTextField(2);consumer1.setBounds(new Rectangle(0, 10, 10, 10));Could someone please give me a hint?import java.awt.*;import ...
281 byte By
philihop at 2007-11-26 12:16:51
hi all,I managed to get th frame extracted from avi video by listenin to ControlListener Event... Now my prob is tat whwnever i click any button either play, pause,seek the same event is invoked... How to differentiate between these events? Can anyone help....
147 byte By
SFL at 2007-11-26 12:16:52
Hi,just a short question: when should my class, which uses a paintComponent method, extends JPanel and when JComponent?Thanks!
Dear all,I am facing problems trying to configure Solaris 10 which was preinstalled on a Sun Ultra 45 workstation.Passing the network configuration stage (some errors included) the installation simply hangs while trying to prepare the filesystem, here are the messages I got:runCmd error in ...
helloi want to develop a user interface in java, can you please tell me the best and most efficient way, i know that swings and awt are used for UI development, but are they efficient? i have heard they are tedious to work with, also can you please tell me if java would be a better option than ...
1371 byte By
panosjava at 2007-11-26 12:16:55
i am writing a program and i want to transfer a file from a client class to a server class... what is the best way to do that?convert the file to bytes using the following File file=new File("jobs.xml"); byte buffer[]=new byte[(int)file.length()]; try { BufferedInputStream input=new ...
Are there any Sun-supplied java classes which will allow an application to access details of clusters (as in scstat), switch resources (as in swswitch) and amend resources and groups (as in scrgadm) please?I'm trying to create a GUI-based app which will (hopefully) be a lot more user-friendly ...
We all know Java is platform independent in that we can compile the source for whatever platform's vm we like, but how does this affect applets to be run on a web page? Do we need a version of the applet compiled for each OS?
I am writing an store procedure with Oracle DB, and i need to pass it an array...but an array java didn't like it...what can i do?thanks best regards
I am connecting to an IBM iSeries DB2 database from a windows platform. I have a simple program which connects from windows and executes some stored procedures on the DB.I was wondering if there is a function in java which returns the number of rows affected by a certain stored procedure ...
Hi,I'm working on a root finder function (something like Bissection or Newton) and I'm facing one doubtUse doubles to perform the algorithm or use BigDecimal?doubles give me faster computing but at some point I must compare the results with zero.For example I'm ...
2923 byte By
panosjava at 2007-11-26 12:17:05
could you please let me know which are the most checks that i can do in the following code... //create and initialize the ORB ORB orb = ORB.init(argv, null); //creates an object for the client's Servant and //initializes it with the orb. ServantClient theCallbackObjectRef = new ...
76 byte By
Elnegm at 2007-11-26 12:17:06
HiI want to show JPanel alone without container Can i do that?
499 byte By
Gupta at 2007-11-26 12:17:09
hi i have created a jsf page in which i created three frame top,lfet,and right.this jsf page this page loads after the user authentication,in the top frame some image and name and time of the user display.in the right frame some links are genrated according to user privileges.i want that when ...
401 byte By
pistre at 2007-11-26 12:17:11
I got a program, thats runs by the keypad the user pushes. The problem is that if I hit the keyboard as totally idiot, the program remember the history of the sequence, and run the program after that.. How can I solve this? I tried setting a boolean, setting it true/false.. but that didn't ...
177 byte By
Dijon at 2007-11-26 12:17:12
HiIs there any way that I might be able to get details from a MS Outlook system calendar and display it within a webapp. Any help will be greatThanks
I've imported java.net, and I'm trying to open a connection to a website. When I try the following line:URL me = new URL(" http://www.google.com")I get the compilation error:java:157: unreported exception java.net.MalformedURLException; must be caught or declared to be thrown.This is the onyl ...
2228 byte By
Batbold at 2007-11-26 12:17:14
Hi all, I am trying to insert the date data to oracle a lot. But all of them works wrong?Here's a code:package main;import oracle.jdbc.driver.*;import oracledb.OraCon;import java.text.SimpleDateFormat;public class inmain {/** * @param args */public static void main(String[] args) {OraCon conn ...
I need to connect to a database but I get an error, can someone please tell me whats going wrong.Here is my connection code:Connection conn = null;try {//load driverClass.forName("com.mysql.jdbc.Driver");// Create a connection to the database String serverName = "cosmos.ucc.ie"; String ...
275 byte By
amir430 at 2007-11-26 12:17:16
I Created one Geometry(Line Array)..........then that Geometry added to Shape3d..........then i display to the canvas3d..........My Problem is i want to Zoom the lineArray.....(without Mouse Zoom)....like step by step....using Scale...... i
1488 byte By
Roekemoes at 2007-11-26 12:17:17
Hello,I have a slight problem with making a JList scrollable. Here's a piece of the code:private JScrollPane getCdList() throws SQLException, NoDBConnectionException, IllegalSQLException, DBException{ArrayList<String> nameList = new ArrayList<String>();ArrayList<int[]> cdList ...
133 byte By
J_prog at 2007-11-26 12:17:18
Hii have an external source code file. How can i use this external file in another source file? Thanks for help.
If you see the example belong, is that the right way to program?What do I mean exactly. Can I give a db-connection as parameter to another method? Can I give a list to another void methode and fill it there?public List getTestList() {Connection dbconn = session.connection();ArrayList list = new ...
I have created a table which contains 2 rows and 2 columns. My requirement is that 2nd column should be non editable and non focusable. Making any cell non editable is very easy but how should i avoid focus on particular cell.i.e., suppose focus is on first cell and now if u press right arrow ...
968 byte By
fazla_ at 2007-11-26 12:17:23
Hi,we are planning to migrate about 2000 users from our current mail system (qmail + openldap) to Sun Messaging 6.2.We have encountered a problem with user password migration. In our current ldap user passwords are MD5 encrypted, but it appears as Directory 5.2 does not support MD5 encryption ...
698 byte By
Gabi at 2007-11-26 12:17:24
Hi all,i have the following piece of code:Locale Locl = Locale.getDefault();try{ ResourceBundle labels =ResourceBundle.getBundle("Gedai",Locl);Enumeration bundleKeys = labels.getKeys();while (bundleKeys.hasMoreElements()) { String key = (String)bundleKeys.nextElement(); String value = ...
Hi,Could any body tell me how to extract frame from video(step by step).As i am using JMF for the first time.Please add the prerequisites alsoThanks in advance
891 byte By
Sheen at 2007-11-26 12:17:26
I have two pages.One for viewing all data.Second for editing that data.The other edit page is in form format and all the fields get prepopulated with the data as they are bound by the request bean properties from the first view page.How can I set the same prepopulation of product-names in an ...
this code doesnt returnt the correct current dirrectory? it appears to always returns the directory one higher than i want... any idea why? JFileChooser chooser = new JFileChooser();chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);chooser.setVisible(true);//get the return valueint ...
I am use a logic iterator tag for a dropdown list and bean :define for the show the values of the drop down list in jdeveloper. But in tomcat when i use this same code i got the following errors.org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: 152 in ...
I have a server and a client and i want the server to be under suspend/sleep/wait mode, whatever, until the client sends a string message. I have read about syncronize but i can't make it work properly. Any ideas?server.javaimport java.io.File;import java.io.FileInputStream;import ...
I am writing a program to recieve customers cookies from a customer. HoweverThis info going to be saved on client macine as encrypted.I just need to know we need to bother encrypt data if the cokkies is set on an SSL browser locationor should we still encrypt.Customer info will be used to ...
i am facing the problem while sending the Unicode from jsp to actionhadler. it is not aging changing in string on actionhandler after doing decoding and encoding of that Unicode.sample code what am i doing isCharset chars=Charset.forName("UTF-8");String ...
i was wondering if anyone could tell how to sum objects in an arraylist?
195 byte By
radar777 at 2007-11-26 12:17:33
HelloMy company want buy Sun StorEdge?Enterprise Backup Software 7.2.I have a question. Can this software work with HP 6870 Virtual Library System?Best regards.
Hi all,After creating a instance for thread class we start its thread using start() method.(for eg t.start()). This will invoke the run() method.Even if we call as t.run() run method is called.Then what is the necessity to call run method using start().Deepak
371 byte By
ajseajse at 2007-11-26 12:17:37
Hi all,In my application there is file(say test.txt).The requirement is to modify the content of the file.For example every occurance of a particular string (say "tomcat_home")in the file should be replaced by some string (say " http://localhost").What is the best way to do this through java ...
57 byte By
javarob at 2007-11-26 12:17:38
Can anyone recommend a good on-line Java Tutorial?
333 byte By
mkoryak at 2007-11-26 12:17:39
what i need to do:i need to take a rather large css file and understand what each style definition it contains looks like on a pagewhat i have:a large style sheet with no documentationis there a tool that does this already?otherwise, how would you go about solving this problem (using ...
i have a table in a form. i am calling a script inside the form to add rows to the table. request.getParameter returns null if i try to get the values from the script. Please help
hi all,Can anybody please help me in solving my problem?.The problem is due to heavy code and somany modules in my project i want to split it to different MIDlets.I am developing a application not the game remember.I want to have seperate MIDlets for each module.And my objective is that,The ...