473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 3101
nos
you should see the fancy character oriented stuff
that does this sort of thing in windows 386

"Yang Li" <yu*********@verizon.net> wrote in message
news:qy*******************@nwrdny02.gnilink.net...
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*********@verizon.net> wrote in message
news:qy*******************@nwrdny02.gnilink.net...

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.za/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
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...
2
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';"...
3
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...
7
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...
1
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...
2
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:...
10
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...
2
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...
6
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 ||...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
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...

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.