Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Visual Café: Importing Applet to a Frame

Posted on 1998-03-16
1
Medium Priority
?
248 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 450 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
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

916 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