Solved

Visual Café: Importing Applet to a Frame

Posted on 1998-03-16
1
218 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

803 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