🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.gui
Article #13

Re: Need something similar to include file for GUI definitions ...

#13
From: Dave Glasser
Date: Tue, 12 Jun 2001 02:44
15 lines
1984 bytes
<chris.deen@sita.int> wrote on Mon, 11 Jun 2001 19:19:25 -0700 in
comp.lang.java.gui:

>We need something like an include file in C to define how all of our GUI
>components look - to make sure all fonts come from a selected set; all
>controls are a certain height, etc.
>
>Does anyone have any experience with something like this ?


You can use Java interfaces like C header files. Define all of your
constants in one, and then every class that implements that interface
will have access to those constants as if they were static constants
in the class itself,  which means you don't have to qualify them with
the interface's name.
Technical Details
Message-ID: <56636A59DECAE37B.E184749A427C0DC4.32967FE2BC0D1055@lp.airnews.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news-east.rr.com!news-west.rr.com!news.rr.com!news-west.rr.com!cabal10.airnews.net!news.airnews.net!cabal1.airnews.net!news-f.iadfw.net!usenet
References: <9g3j1o$25u$1@nntp.sita.int>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fa3e3,e8c02eaab8a2431e
X-Google-Attributes: gidfa3e3,public
X-Google-Thread: 10fd6d,e8c02eaab8a2431e
X-Google-Attributes: gid10fd6d,public
X-Google-ArrivalTime: 2001-06-11 19:59:59 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news-east.rr.com!news-west.rr.com!news.rr.com!news-west.rr.com!cabal10.airnews.net!news.airnews.net!cabal1.airnews.net!news-f.iadfw.net!usenet
From: Dave Glasser <dglasser@pobox.com>
Newsgroups: comp.lang.java.gui,borland.public.jbuilder.ide
Subject: Re: Need something similar to include file for GUI definitions ...
Date: Mon, 11 Jun 2001 22:44:57 -0400
Organization: dglasser@pobox.com
Lines: 17
Message-ID: <56636A59DECAE37B.E184749A427C0DC4.32967FE2BC0D1055@lp.airnews.net>
X-Orig-Message-ID: <4c0bit0anelpevjsfdkrn1bh93n9eh61a5@4ax.com>
References: <9g3j1o$25u$1@nntp.sita.int>
Abuse-Reports-To: abuse at airmail.net to report improper postings
NNTP-Proxy-Relay: library1-aux.airnews.net
NNTP-Posting-Time: Mon Jun 11 21:54:40 2001
NNTP-Posting-Host: !c;d"1k-W+&S+*`G]aa0G@k`c (Encoded at Airnews!)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: Forte Agent 1.8/32.548