Maximum size of a JComboBox in a GridBagLayout

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 ...

JTextField

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 :)

question on applet

723 byte By qUesT_foR_knOwLeDge at 2007-11-26 12:16:48
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 ...

Please help with GUI problem, can't set size

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 ...

how to differentiate bw play, pause n seek buttons in TypicalPlayer Applet?

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....

Extending JPanel or JComponent?

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!

solaris 10 installation hangs at filesystem preparation stage

839 byte By David.Guzman at 2007-11-26 12:16:53
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 ...

user interface development in java

354 byte By preetimalik at 2007-11-26 12:16:54
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 ...

what is the best way to send a file?

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 ...

Accessing details through Java

333 byte By eternal_student at 2007-11-26 12:16:56
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 ...

Platform independence

233 byte By javakicksass at 2007-11-26 12:16:57
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?

ARRAY ORACLE

164 byte By marcoagile at 2007-11-26 12:17:00
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

row count help

443 byte By rw263@cam.ac.uk at 2007-11-26 12:17:01
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 ...

Comparing two doubles

844 byte By manuel.leiria at 2007-11-26 12:17:03
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 ...

catching errors using orb, nameService and Binding lists..

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 ...

Can i show JPanel to user without container?

76 byte By Elnegm at 2007-11-26 12:17:06
HiI want to show JPanel alone without container Can i do that?

frame problem in jsf

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 ...

Keypad lock

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 ...

Getting calendar details from MS Outlook

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

Using URL me = new URL("http://www.google.com")

467 byte By Unconditional at 2007-11-26 12:17:13
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 ...

How to insert java.util.Date to Oracle by OraclePrepaidStatement

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 ...

Connection problem

3306 byte By Tizzle4Shizzle at 2007-11-26 12:17:15
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 ...

Any Java3d Specialist help to me..........

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

A JList in a ScrollPane not showing

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 ...

External source file

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.

the right way of programming

2529 byte By bartdepauw at 2007-11-26 12:17:21
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 ...

how to make a cell or column in JTable non focusable.

422 byte By Prashant_SDN at 2007-11-26 12:17:22
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 ...

migrate users from qmail to sun messaging

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 ...

MissingResourceException

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 = ...

Need help to extract frames from video

187 byte By awkash_agrawal at 2007-11-26 12:17:25
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

Add Remove List Options

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 ...

JFileChooser returns wrong getCurrentDirectory()?

866 byte By helen_166 at 2007-11-26 12:17:27
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 ...

bean: define problem in tomcat.But it is working fine in Jdeveloper. Why?

3219 byte By J2EE_professional at 2007-11-26 12:17:28
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 ...

Suspend udp server until message arrives

5659 byte By axelinux@hotmail.com at 2007-11-26 12:17:29
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 ...

SSL OR encryp/decrypt

365 byte By Preaching at 2007-11-26 12:17:30
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 ...

Sending unicode from jsp to actionhandler

459 byte By varunseth at 2007-11-26 12:17:31
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 ...

arraylist help!

79 byte By da_master_of_nuthin at 2007-11-26 12:17:32
i was wondering if anyone could tell how to sum objects in an arraylist?

Sun StorEdge?Enterprise Backup Software 7.2 with HP 6870 Virtual Library S

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.

Difference in run() & start()

287 byte By deepakchandaran at 2007-11-26 12:17:34
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

modifying file content

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 ...

Online Java Tutorial

57 byte By javarob at 2007-11-26 12:17:38
Can anyone recommend a good on-line Java Tutorial?

program to understand what is in a css file

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 ...

request.getParameter returning null in jsp

186 byte By vidhya_java at 2007-11-26 12:17:40
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

Invoking one midlet from another midlet

1343 byte By sshiragavi at 2007-11-26 12:17:41
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 ...

InputStream Mark Not Supported

438 byte By t-bag at 2007-11-26 12:17:42
I am doing a college project where I need to take a number of files, split them into bytes and place the bytes into packets of size 80 bytes. I am using an Input Stream to read the bytes, 80 at a time. My idea was to use the Mark() and reset() methods to do this but these methods are not ...

Modify TictacToe server/client example from deitel "How To Program"

18742 byte By JavaDistress at 2007-11-26 12:17:43
We've been given example code from the deitel & deitel book how to program and have to carry out the following alterations:a) Modify the TicTacToeServer class to test for a win, loss or draw on each move in the game. Send a message to each client applet that indicates the result of the ...

MySQL 5 support

296 byte By Knut_J at 2007-11-26 12:17:44
Hi,Do SJS ASP 4.0.2 support MySQL 5? If not when do you expect a new release with support for it?We need the new features in MySQL 5 and at the same time we're stucked with ASP. Tried using sjs asp 4.0.2 with mysql 5, however it gave some strange results. :(-- Knut J

Wanna skip exact number lines while reading a file file

338 byte By Candy at 2007-11-26 12:17:45
Hi all,I would like to skip exact number of lines while reading a text file.Let's say I wanna read this text file starting from line no N. And so I need to skip from fist line to N-1th line.Does anyone give me a way to do?Pls with a sample code if possible coz I am not familiar much to java. ...

RMI Client - ClassCastException error

2099 byte By chaos_begins_here at 2007-11-26 12:17:46
Hi,This is my first code in RMI, when I tried to run the server I faced similar problem but managed to run it later, but my client code still giving problem, and this what I'm getting as exception, I'm running my client with following JVM ...

How do I catch the input from JTextfield?

10343 byte By _Robb_ at 2007-11-26 12:17:47
I want to be able to input delaytime for the buffer, but all I get is a lot of red text in my console window. The "actionPerformed" is at the bottom and I added a listener in JButton bufferButton = new JButton("Set buffer-time");bufferButton.addActionListener(this);import java.awt.*;import ...