Solved

Visual Café: Importing Applet to a Frame

Posted on 1998-03-16
1
221 Views
Last Modified: 2013-11-23
HI!
---
I have a question regarding the best way to import a applet, written in JDK 1.1.2, into Visual Café as a Standard Java Application. The applet contains some buttons to control a movieplayer (reads from a raw data file) and a diagram that plots some values from a data file.

How can I make Café to recognize the components in order to display them in the frame? Should I put all the components on a panel?
0
Comment
Question by:jonte
1 Comment
 
LVL 2

Accepted Solution

by:
shogi earned 150 total points
ID: 1233579
In you Visual CAfe project you have to change in the Options of you project: APPLET for APPLICATION (a program that requires java.exe to run) or a WIN32 APPLICATION (a stand-alone executable program).

About the translation applet to frame

All what you have in your applet have to go in the Frame1.
So create Frame1 (insert Form) after that, what it's in your init method have to go in the constructor Frame1().  Don't forget to remove dupplicat line like
            setSize(400,300);
            setLayout(null);

WARNING: Visual Cafe having beginning mark and end mark like :

//{{INIT_CONTROLS
//}}
//{{INIT_MENUS
//}}
//{{REGISTER_LISTENERS
//}}

Outside the constructor Frame1()

//{{DECLARE_CONTROLS
//}}
//{{DECLARE_MENUS
//}}

And others...

You need to put in the same place code in the good section.  Section in applet and frame1 are same in general.

Hope that it will help you... IF you have some others questions I'm around!

Regards,
Shogi



 


 

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.

828 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