Solved

Look and Feel on Windows and Solaris

Posted on 1998-11-16
3
284 Views
Last Modified: 2013-12-05
The applet that I developed uses awt components and Symantec components. The Look and feel varies depending on the client OS. On windows NT/95 it looks good. On Unix machines, the text in the Textfield control looks truncated. I have treid with different fonts with no use. On a 14' monitor the vertical and horizontal scroll bar appears. How can I eliminate this.
0
Comment
Question by:ruks
3 Comments
 

Author Comment

by:ruks
ID: 1227546
This is urgent, any suggestions are welcome
0
 
LVL 7

Expert Comment

by:conick
ID: 1227547
do you specify the # of columns in your textfield?
either with setColumns() or in the constructer?
if you dont try explicitly setting those...
so it should behave in the same way on both machines
0
 
LVL 3

Accepted Solution

by:
mjenkins earned 100 total points
ID: 1227548
The easy answer is to use Swing components and the Java (Metal) look and feel. This will require the use of the java plug-in as well, but that gives you assurance that the applet will run anywhere.

Alternatively, you can try to fiddle with the AWT controls. One way to get the textfield components to size appropriately is to initialize the textfield with all W's. For example, if you have a textfiled that is supposedto be 5 chars wide initialize it to "WWWWW" and then reset it to "     " after the layout has been called. 'W' is generally the widest chatacter in a variable font set.

I hope this helps.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
map related example 6 55
Running JavaFX on JDeveloper 12C 1 55
add projects t working set in maven 2 24
Running JavaFX on the Raspberry Pi 27 47
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question