Solved

Visual Café: Importing Applet to a Frame

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

632 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