Scrollbar in frame

161 byte By e_geht at 2007-9-26 1:48:57
Hi!I would like to know how to put scrallbar in frame and to make the frame move up and down ( to make it look like html page). Thanks!!!!!!

how to modify Objetc HTTPServletRequest ?

164 byte By Amens at 2007-9-26 1:48:58
I want to modify or to insert new fields in the object HTTPServletRequest.Is it possible to do it and how?Thanks for reply

How can I set JTable's columns width?

183 byte By natkinnat at 2007-9-26 1:48:59
Please, can anyone give me a hint.It seems I miss something important.I can't set the table columns to an appropriate width.Please, help !!!

JOptionPane

236 byte By davyboy1979 at 2007-9-26 1:49:02
Is there anyway to put the contents of the JOptionPane into multiple lines in the java code for I have to scroll horizontally at the minute to reach the end of the contents for I have alot of information on the JOptionPane

quick question

639 byte By stevenwooding at 2007-9-26 1:49:04
Hi, I am running a server/client program displaying an array in the server window. problem is I need to run an infinite for loop that refreshes the array onscreen every half second or so. I am running the server and client on win2000 command prompt(dos). If my server code is:for( ; ; ...

Overriding a Method Using a Parameter That is a Subclass

1746 byte By pgarner at 2007-9-26 1:49:06
abstract class Datum {private Object value;private Object name;...Datum(Object value) {this.value = value;}Object getValue(){return value;}abstract boolean lessThan(Datum d);boolean greaterThanOrEqual(Datum d) {return !lessThan(d);}} class FloatDatum extends Datum {FloatDatum(Float value) ...

How to prevent byte-code "decompilation" ?

218 byte By floweb at 2007-9-26 1:49:09
I have some critical information in the source code of my program and I want to prevent a user from decompile the byte-code in order to retrieve those information.Is there a solution ?Floweb

Enable selectrow/ enabling select cell in JTable

539 byte By moitor at 2007-9-26 1:49:12
Hi!I have a wish!When I open the table, I want the user to only be able to select whole rows in the table, but not allowing them to edit the cells.When the editButton is Pressed, I want the user to only select one and one cell, and be able to edit them. When the editbutton is pressed for the ...

Getting method's fields

313 byte By leliojr at 2007-9-26 1:49:18
Hello JGuys...Using the method Class.getDeclaredFields it's possible to acquire all fields declared in a given class; but the fields declared in the methods aren't acquired.So, is there a way to acquire the fields declared in a method scope ?Thanks in advance.-- Lelio. ...

How can i create a pie chart

387 byte By LearningSTF at 2007-9-26 1:49:21
Hi all,I'm a beginner in java and i'm investigate in a web project (website) which should display statistical charts. I did a beans to generate basic bar charts, but it's most difficult to build a pie chart. That's why i need help to put me on the right way of building a Piechart beans.All ...

Http POST.

106 byte By valjok at 2007-9-26 1:49:22
Has anybody example of http post message sending? I need to send big amounts of binary data.

Components Resize Unexpectedly

488 byte By kelle3 at 2007-9-26 1:49:28
I have a window that uses borderlayout. The CENTER panel contains a table. The NORTH panel is in flowlayout. It contains 3 other panels that contains components. My problem is that occasionaly when the table becomes populated with data, the components in the north panel resize unexpectedly. ...

Rounding question

217 byte By munch9000 at 2007-9-26 1:49:29
I have seen a lot of topics in this forum about rounding to a certain number of decimal places, but I don't see anything about rounding numbers like 54345 to 54000. That is what I want to do. Any ideas?

Large amount of text in help window

528 byte By alisabeth at 2007-9-26 1:49:30
I am trying to develop a help window that will display a large amount of text (3 or 4 paragraphs) about the previous window's options. I am currently trying to read a file with the text and place it on a JLabel that will appear in the help window. I can't quite get the syntax right to read ...

How to change Column Size of JTable in an AbstractTableModel

503 byte By kleindinst at 2007-9-26 1:49:31
Hi !I have an JTable connected to a AbstractTableModel.How can I change the size of the columns ?TabModel tabModel = new TabModel();JTabletable= new JTable(tabModel); The class TabModel is my class extends AbstractTableModel.Or how to you change the size of a displayed column in a table ? (not ...

JDBC and Microsoft Access

373 byte By tomespo214 at 2007-9-26 1:49:32
I am writing an application that will be used by non-tech people. If I write the application using the JDBC-ODBC bridge and connect it to a Microsoft Access database, will the users also need to have Microsoft Access installed on thier machines? If so, how can I get around that? My application ...

OR?

165 byte By M_Timur at 2007-9-26 1:49:33
Please give me an advise : how it should look correctly: if ( a==1 or a==2){do}What should I use instead of "or"Thank you

Is java compiler stable?

699 byte By jjjvvvst at 2007-9-26 1:49:37
or the windowNT4.0 on my PC?I cannot compile my Java appication anymore after I ran the realTV program (one night ago)the compiler is jdk1.3.1 (standard version).following messages showed up: the symbol ####(one of classes) cannot be resolved the class ### location cannot be found.... ...

Slow GUI after Printing

226 byte By Hoju at 2007-9-26 1:49:39
After printing, my swing gui takes 3 times as long to update 2d graphics (using paintComponent). Before printing, it updates very quickly, and the slowdown only occurs after printing. Anyone know how to fix this?

How to do a FTP

96 byte By ShockWolf at 2007-9-26 1:49:41
Say I wish to do a mget to ftp.microsoft.com.Anyway to do it.Thanks.

string to float/double and float/double to string

521 byte By imation3m at 2007-9-26 1:49:42
i m converting a string to float/double obtained from a textfield, that is to be used in calculations. i m writing the code below (which i think should work OK but it isnt), nebody can tell me wat is wrong with the following code.Thanksvoid Convert(String text) { /* text string is passed double ...

urgent!!! how to set session time in ....

178 byte By johnquest at 2007-9-26 1:49:43
Hi ,can anyone guide me as how to set session time for set of servlets in apache webserver like how we set connection time for database?Thanks.

Windows XP not to directly support Java

428 byte By m_merrick at 2007-9-26 1:49:45
I just read a rather disturbing article that Windows XP will not implicitly support Java. To run applets from java-powered web-sites will require te average user to manually download the JRE. For a developer to do so is a non-issue, but for the average user to do so may pose a problem for the ...

JTextField to select all on entry

133 byte By gil_e at 2007-9-26 1:49:46
How can I make a JTextField behave like the cell in Excell (you click on the cell and all it's contents are selected)?

Image auto resizing

307 byte By Kngus at 2007-9-26 1:49:47
Hey all, I've got an image icon that I'm using in a program I'm writing, and I wanted in to appear in a frame of a certain size. The thing is, I want the picture to automatically shrink to fit into my alotted space. Is there a function that could do this for me ? thanks,Angus ...

Do we have to separate java source files and class files after compiled..

301 byte By sojag at 2007-9-26 1:49:48
Hi,I really confussed with this: I have compiled java source files into a package and tried to use but the classes can not be found. Should I separate class and source files after compiled with packages names. I hope you understand what i mean.Thank youSo Jag ...

Urgent!! Get a JPopupMenu to stay?

505 byte By MattTheSwede at 2007-9-26 1:49:52
Hi,I'm using a JPopupMenu with a JPanel and a couple ofother components in it. The problem is that when I'mpressing a component everything else disappears. How do I get the popUpMenu to stay on top, visible, while using other components in the menu? I want the menu to stay visible until I ...

JInternalFrame and MouseEvent

308 byte By mraillard at 2007-9-26 1:49:54
I want to add a mouse listener to a JInternalFrame. (Not to components contained by the frame.)It seems like the only event which a JInternalFrame can listen for is InternalFrameEvent.Is there a way to capture mouse events also, or instead of InternalFrameEvents.Thank you! ...

repaint() not repainting in JComponent

2099 byte By cazza at 2007-9-26 1:49:57
This code doesn't repaint itself when one of the methods to reposition the label is called (eg labelLeft()). I could really do with knowing why not.<code>import javax.swing.*;import javax.swing.table.*;import vdt.*;import java.awt.*;public class PreviewLabel extends JComponent{ JTable ...

Resizing my picture automatically

307 byte By Kngus at 2007-9-26 1:49:59
Hey all,I've got an image icon that I'm using in a program I'm writing, and I wanted in to appear in a frame of a certain size. The thing is, I want the picture to automatically shrink to fit into my alotted space. Is there a function that could do this for me ? thanks,Angus ...

Obtaining keys from java.util.TreeMap values (help)

205 byte By dupsy at 2007-9-26 1:50:00
I don't know how i can obtain the keys from the values in the java.util.TreeMap. I can iterate through the key-values collection, but i don't know how i can specify a value to obtain a key.

Passing Objects from one Frame to another

535 byte By Xantia95d at 2007-9-26 1:50:01
Hi,I am trying to write an app that will start with an overview frame that allows the user to access several other frames. He uses the other frames to define different objects. How do I pass the information from the second frame back to the first frame.e.g first frame has 3 buttons define ...

Java Compiler

149 byte By javamanz at 2007-9-26 1:50:03
I am new in java and I have few questions. How to run the java compiler in a non dos enviernment like Win 2000. I have JRun. Any clue ?

code standard, good programmation habit

289 byte By ChantalM at 2007-9-26 1:50:05
We are just starting a new application, and I would like to have any information on Code standard (web site, books ... or from your own experience), what to avoid in order to get good performance, how to make a program parametizable ? thank you for your help .Chantal

jkd compiler

150 byte By javamanz at 2007-9-26 1:50:10
I am new in java and I have few questions. How to run the java compiler in a non dos enviernment like Win 2000. I have JRun. Any clue ?

Problem using registerNatives() in JNI

2763 byte By w.baum at 2007-9-26 1:50:13
I want to start a VM from a C program using the Java Invocation APIand start a java application via JNI. The java application should be ableto call functions from the C program. The platform used is Windows 2000on x86 hardware.I hoped the following piece of code would do the job:- #include ...

IBM JVM

326 byte By schillj at 2007-9-26 1:50:14
Simple question: Where can I download the JVM from IBM? I tried the IBM web site but it's not so intuitive (they have downloads for Visual Age available).Is the download just the JRE (without class files) or does it also include the API jar files? If so, what version of the API does the IBM ...

Using url with username and password in URL class

529 byte By PROSPERO at 2007-9-26 1:50:17
Hi,I'm writting an applet in which I use getAppletContext().showDocument with an URL.The problem is that I'm using URLs with username and password ( http://user:password@site.com/page) and it isn't working because the browser is getting the URL http://user/page.Is this a bug in the URL class? ...

I just want to know which part of forum is for beginners?

23 byte By WingSonic at 2007-9-26 1:50:19
I am new.

Object extension

866 byte By darkglassdolleyes at 2007-9-26 1:50:20
'ello . . .Let's say I've got a base class, "Element," and that "Switch" and "Card" extend Element. I've also got a base "Loader" class, and "SwitchLoader" and "CardLoader" which extend like you'd expect. There's also some sub-classes off of SwitchLoader and CardLoader which talk to ...

Silly Question!

78 byte By WingSonic at 2007-9-26 1:50:22
public static void main(String[] args)what is that means?

JTable problem

135 byte By perego at 2007-9-26 1:50:28
How is possible to select multiple rows in a JTable and then remove them?Could someone help me ?Thanks Alex

MQSeries

137 byte By fsayeed at 2007-9-26 1:50:34
Does anybody have a code snipet for connecting to a MQSeries Queue in a remote server.Appreciate any help!F.S

Newbe's question on Java Applets!

631 byte By thalaw at 2007-9-26 1:50:35
Hi There,I need to make an applet, that can be implemented in a website, but when it's loaded onto the clients computer it must be able to communicate with the serial port.Now is this possible with applets? Do i need some extra stuff (i can imagine that for security reasons this will not be ...

Update test file on web server

553 byte By jpifer at 2007-9-26 1:50:40
I have a web server that I need to update every so often. It's just a text file, and I'd like to be able to do it from a browser. Each line in the file contains one word. I want to be able to add/delete/modify words(lines).My questions are:-Do I need to write a servlet to do this?-I'm sure I ...

When is change completed..

556 byte By kdua1 at 2007-9-26 1:50:41
If I add a ComponentListener to a component the ComponentEvent is fired all through the changing (e.g resizing) of the component (e.g thru mouse drag). The problem is that if I want to call some custom code based on the ComponentEvent it would get called repeatedly in the present scenario. I ...

Deprecation error

140 byte By imation3m at 2007-9-26 1:50:50
i m using public boolean action(Event evt, Object arg)but it gives a deprecation error. what is the alternative?

Go to Next Line using JTextField

368 byte By SickBunny at 2007-9-26 1:50:53
Hi,I am a newbie to Java. I am trying to figure out how to write to the next line in a JTextField, using a second *textfieldname*.setText("stuff") command. I am just able to write to the first line and the next *.setText() command overwrites the previous line. ( I'm not even sure if I'm ...

Any recommendations for a Java IDE?

189 byte By thomasfly at 2007-9-26 1:50:54
I'm using Forte, but I wonder about alternatives like JBuilder? Forte seems a bit immature compared to something like (gasp!) Visual C++, but of course the price is right :^)

JBuilder IDE

139 byte By javamanz at 2007-9-26 1:50:55
Any one used JBuilder his feedback of the software. It is a good IDE ? if you know a better one please tell me. Thanks alot !