Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #38289

Re: how do you block the GUI repaints?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From Daniele Futtorovic <da.futt.news@laposte.net>
Newsgroups comp.lang.java.programmer
Subject Re: how do you block the GUI repaints?
Date Wed, 23 May 2018 22:35:05 +0200
Organization A noiseless patient Spider
Lines 34
Message-ID <pe4jbf$u1c$1@dont-email.me> (permalink)
References <2ddef1c1-ac37-4384-a3a5-f9b94a1fcbf6@googlegroups.com> <pe1obt$8p6$1@dont-email.me> <6762ff5e-8846-4ea7-be57-7518f2d7ff42@googlegroups.com> <pe1vmo$trt$1@dont-email.me> <a663fea4-e31f-4ec3-952d-ff24c2ba3180@googlegroups.com> <pe2jq7$ah5$1@dont-email.me> <bdb5f760-afe9-474b-ac32-d846e0300b13@googlegroups.com> <pe3s4h$b7i$1@dont-email.me> <593f7f26-0f96-4869-9f55-12917ff65574@googlegroups.com> <pe3tv0$m86$1@dont-email.me> <dc7c06c5-d19f-406d-9ef2-39afd210c18a@googlegroups.com> <pe45ua$600$1@dont-email.me> <29c0196d-8d2e-489c-ab8a-e99fab3012ad@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
Injection-Date Wed, 23 May 2018 20:35:59 -0000 (UTC)
Injection-Info h2725194.stratoserver.net; posting-host="21b232232ecdedc4c6b354478bf40cb8"; logging-data="30764"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19GgzlLVKenlURgiAnFYISg"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
Cancel-Lock sha1:dXvH0d75rZ/lQJLQFgUTA2Fm0uM=
In-Reply-To <29c0196d-8d2e-489c-ab8a-e99fab3012ad@googlegroups.com>
X-Antivirus-Status Clean
Content-Language en-GB
X-Antivirus AVG (VPS 180523-2, 05/23/2018), Outbound message
Xref csiph.com comp.lang.java.programmer:38289

Show key headers only | View raw


On 2018-05-23 19:51, Eric Douglas wrote:
> Yes, I am or was confused.  I'm thinking a String is just a collection of characters 

Correct.

> which are just collections of bytes, 

Incorrect. They are an /interpretation/ of bytes. The same bytes can
mean different characters depending on the encoding.

> and once the String is created it should hold anything a byte array can hold 

Technically, it can. It's just that what you /think/ it is holding might
differ from what it (the String) thinks it's holding... again, because
encoding is an interpretation of data.

> and the control needs to know how to display it.> Apparently it's the font that needs to know how to display it.

Incorrect. If it isn't a character - i.e. if there isn't a character
corresponding to the underlying byte sequence in the given
interpretation (encoding) - then it's not the font's responsibility to
display it.

> So, I don't know how Notepad++ comes up with their codes to show what non-displayable characters look like, 

A mix of making stuff up and the control sequences from the old ASCII
days, I'd reckon.

> but if the Font has a method to say the character can't be displayed I'll just go with displaying a placeholder, most likely a dot (".") 

Or a square, perhaps?

-- 
DF.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

how do you block the GUI repaints? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-22 10:59 -0700
  Re: how do you block the GUI repaints? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2018-05-22 13:22 -0500
    Re: how do you block the GUI repaints? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-22 13:00 -0700
      Re: how do you block the GUI repaints? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-05-22 16:29 -0400
        Re: how do you block the GUI repaints? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-22 13:51 -0700
          Re: how do you block the GUI repaints? Martin Gregorie <martin@mydomain.invalid> - 2018-05-22 21:41 +0000
          Re: how do you block the GUI repaints? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-05-22 18:03 -0400
            Re: how do you block the GUI repaints? Andreas Leitgeb <avl@logic.at> - 2018-05-22 22:22 +0000
              Re: how do you block the GUI repaints? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-23 07:55 -0700
                Re: how do you block the GUI repaints? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-05-23 11:06 -0400
                Re: how do you block the GUI repaints? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-23 08:19 -0700
  Re: how do you block the GUI repaints? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-05-22 14:43 -0400
    Re: how do you block the GUI repaints? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-22 13:20 -0700
      Re: how do you block the GUI repaints? Daniele Futtorovic <da.futt.news@laposte.net> - 2018-05-22 22:47 +0200
        Re: how do you block the GUI repaints? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-22 13:58 -0700
          Re: how do you block the GUI repaints? Daniele Futtorovic <da.futt.news@laposte.net> - 2018-05-23 04:30 +0200
            Re: how do you block the GUI repaints? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-23 05:54 -0700
              Re: how do you block the GUI repaints? Daniele Futtorovic <da.futt.news@laposte.net> - 2018-05-23 15:58 +0200
                Re: how do you block the GUI repaints? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-23 07:26 -0700
                Re: how do you block the GUI repaints? Daniele Futtorovic <da.futt.news@laposte.net> - 2018-05-23 16:30 +0200
                Re: how do you block the GUI repaints? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-23 07:48 -0700
                Re: how do you block the GUI repaints? Daniele Futtorovic <da.futt.news@laposte.net> - 2018-05-23 18:46 +0200
                Re: how do you block the GUI repaints? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-23 10:51 -0700
                Re: how do you block the GUI repaints? Daniele Futtorovic <da.futt.news@laposte.net> - 2018-05-23 22:35 +0200

csiph-web