Solved

Look and Feel on Windows and Solaris

Posted on 1998-11-16
3
287 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

751 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