473,549 Members | 2,741 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DOS style menu

Does anybody remember the golden old days of Win95 and
start-up disks driven by a simple console interface with
a few choices that can be highlighted and selected? Anyway
I havent figured out how to make that kind of console
menus, whereby the choices can be highlighted and the
enter key selects the choice. Anybody know how to do
this with Java?
Jul 17 '05 #1
4 3103
nos
you should see the fancy character oriented stuff
that does this sort of thing in windows 386

"Yang Li" <yu*********@ve rizon.net> wrote in message
news:qy******** ***********@nwr dny02.gnilink.n et...
Does anybody remember the golden old days of Win95 and
start-up disks driven by a simple console interface with
a few choices that can be highlighted and selected? Anyway
I havent figured out how to make that kind of console
menus, whereby the choices can be highlighted and the
enter key selects the choice. Anybody know how to do
this with Java?

Jul 17 '05 #2
Yang,

"Yang Li" <yu*********@ve rizon.net> wrote in message
news:qy******** ***********@nwr dny02.gnilink.n et...

Does anybody remember the golden old days of Win95 and
start-up disks driven by a simple console interface with
a few choices that can be highlighted and selected ?

Great stuff was possible [using x86 assembler, or Turbo Pascal, or ANSI
escape codes sent via the PROMPT command in batch files] even earlier under
DOS 2.x and up :) ! Tools like the Norton Utilities and Commander even
brought such possibilities to the masses !

Anyway I havent figured out how to make that kind of
console menus, whereby the choices can be highlighted and
the enter key selects the choice.

Nor will you, as the kind of 'tight' keyboard control [e.g. respond to
single key strokes without the need to press ENTER] required for such
[console-based] applications is not possible using native Java. Suitable JNI
routines need to be used.

Anybody know how to do this with Java?


The easiest way is probably to do a web search for a Java implemention of
the UNIX Curses package. I remember looking at product [in beta testing at
that time] called JCurses some time ago which may well offer the
functionality you require.

I hope this helps.

Anthony Borla
Jul 17 '05 #3
> Does anybody remember the golden old days of Win95 and
start-up disks driven by a simple console interface with
a few choices that can be highlighted and selected? Anyway
I havent figured out how to make that kind of console
menus, whereby the choices can be highlighted and the
enter key selects the choice. Anybody know how to do
this with Java?


Take a look at Charva: http://www.pitman.co.za/projects/charva/index.html

// Stefan L. Jensen
Jul 17 '05 #4
Yang Li wrote:
Does anybody remember the golden old days of Win95 and
start-up disks driven by a simple console interface with
a few choices that can be highlighted and selected? Anyway
I havent figured out how to make that kind of console
menus, whereby the choices can be highlighted and the
enter key selects the choice. Anybody know how to do
this with Java?


Not that I have looked into it, but I saw about the same question on the
Danish Java group recently, and here was the answer :

En søgen på Google giver følgende:
<http://www.pitman.co.z a/projects/charva/index.html>

Der er tale om en AWT og Swing wrapper, så man på let vis kan gøre
eksisterende GUI-programmer tekstuelle. Smart ser det ud bortset fra at gør
brug af GNU ncurses via JNI. Siden linker også til en ASCII-udgave af AWT,
men denne virker ikke med Java 2 og er derfor nok ikke så interessant.

Google gav også følgende: <http://www.nongnu.org/jcurzez/>. Det er måske
denne du tænker på?

Check those links ?

Soren

Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2100
by: Nairb | last post by:
Just learning here, so maybe I'm way off, but... I was originally under the impression that css style properties could be accessed/ listed since they exsisted as an array somewhere. Is this just flat out wrong? To illustrate - I guess I thought something like this could be used to list available/ or set properties, or in this example the...
2
1552
by: Michel | last post by:
I like to have a small menu where the <a> items have a blue background on hover like normal window-menu's. Like this: <tr onmouseover="style.background='#0000ff';" onmouseout="style.background='#ffffff';"> <td><a>Menu item 1</a></td> </tr> But I don't like to repeat the onmouse... Is there no way to use a stylesheet where only a...
3
5274
by: T | last post by:
I am attempting to create a menu using <div> and <span> tags within a table cell. When the page loads, some of the classes don't seem to be applied. If I hover over the menu everything is fine from that point on. If I remove the table everything renders correctly, and I have no problems. Unfortunately, I need to nest this menu within a...
7
2352
by: Sandman | last post by:
I have a script that generates a hierarchical menu, but I am having problems assigning styles to each manu items different possible states. The possible states a menu item can be in is (and all of these can be combined unless they are mutually exclusive): 1. It can belong to a specific level in the hierarchy; 1, 2, 3 and so on. 2. It is the...
1
1028
by: Robert Bull | last post by:
I am creating a menu with the ComponentOne tools that come with the ..Net resource kit. I am trying to apply a style sheet to the controls of the menu but I dont know how. Do I need to add a new style sheet or can I use the styles.css? If I add a new style sheet, how do I apply it to the menu controls? There is a property in the properties...
2
1741
by: Raed Sawalha | last post by:
I have the following table in ascx , when I click the button the table style not showing in the popup , it is ONLY showing on the page not in the popup...WHY? <TABLE style="BACKGROUND: #d8e8f5;CURSOR:hand" bgcolor="#d8e8f5" id="tblMenu" cellSpacing="0" cellPadding="2" width="150" border="1"> <TR> <TD class="standerdfont" >New Document</TD>...
10
2336
by: p3t3r | last post by:
I have a treeview sourced from a SiteMap. I want to use 2 different CSS styles for the root level nodes. The topmost root node should not have a top border, all the other root nodes should have a top border. Is it possible to have more than 1 style at the same level (parent node) when using a SiteMap? I want it to appear something like...
2
1449
by: cj | last post by:
How can I make the mainmenu look more like a bar? I think it needs the line below it or border or something. It just looks like a row of words at the top of the form--indistinguishable from other form items. But I don't see anything in the mainmenu properties like a border setting or anything.
6
13755
by: rongchaua | last post by:
Hi all, I want to change the style of a button. But I don't know how to do it. For example, I have already a button OK on form. I want to add these styles to this button (WS_CHILD || WS_VISIBLE || WS_CLIPSIBLINGS || WS_TABSTOP || BS_FLAT). What should I do now? All help will be appreciated. rca.
0
7520
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7450
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7720
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7957
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7470
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7809
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6043
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.