Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [programmazione] liste e stringhe
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
lughes
libero Pensatore

User info:
Registered: Feb 2003
Posts: 478 (0.06 al dì)
Location: Milano - Prato Sesia
Corso: TiCOM
Anno:
Time Online: 11 Days, 2:44:59 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[programmazione] liste e stringhe

allora la mia situazione è questa:

ho una lista di stringhe...e le stringhe sono più lunghe della larghezza delle stringhe...
non voglio che le parole vengano tagliate...

qualcuno ha suggerimenti?

per adesso ho tagliato le stringhe e inserito tre puntini di sospensione però utilizzando un font non monodimensionale le stringhe e i puntini non sono allineati...

ah dimenticavo...è in java...


ciao

__________________
...più beviamo più vinciamo e tanti gol possiamo far, e la Pratese stravincerà, noi che siamo gli invincibili e per questo siamo qui, per poter dire RITIRATEVI!!!

27-03-2006 17:40
Click Here to See the Profile for lughes Click here to Send lughes a Private Message Find more posts by lughes Add lughes to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
10gigi10
.consigliere.

User info:
Registered: Jan 2006
Posts: 115 (0.02 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 16:54:15 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

prova semplicemente ad aumentare la lunghezza della singola stringa ma non della lista...cosa intendi x font monodimensionale(ad una dimensione!!!)in che senso? in java me la cavo abbastanza

__________________
Che sia brutto che sia bello meglio uscire con l'ombrello

27-03-2006 18:02
Click Here to See the Profile for 10gigi10 Click here to Send 10gigi10 a Private Message Find more posts by 10gigi10 Add 10gigi10 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lughes
libero Pensatore

User info:
Registered: Feb 2003
Posts: 478 (0.06 al dì)
Location: Milano - Prato Sesia
Corso: TiCOM
Anno:
Time Online: 11 Days, 2:44:59 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by 10gigi10
prova semplicemente ad aumentare la lunghezza della singola stringa ma non della lista...cosa intendi x font monodimensionale(ad una dimensione!!!)in che senso? in java me la cavo abbastanza


no...nn mi sono spiegato bene...
allora la lista ha una larghezza x e le stringhe sono di lunghezza superiore a questa larghezza x...il risultato è questo

10:45 - news 1 : cdcddds|ds sds
10:45 - news 1 : cdcddds|
10:45 - news 1 : cdcddd |
10:45 - news 1 : cdcddd |


se una stringa supera la linea le parole vengono tagliate...

monodimensionali....ho detto una cazzata...volevo dire monospaziali..cioè un font con tutte le lettere della stessa dimensione...

__________________
...più beviamo più vinciamo e tanti gol possiamo far, e la Pratese stravincerà, noi che siamo gli invincibili e per questo siamo qui, per poter dire RITIRATEVI!!!

27-03-2006 19:02
Click Here to See the Profile for lughes Click here to Send lughes a Private Message Find more posts by lughes Add lughes to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Skilotto83
..Energia positiva...

User info:
Registered: Jun 2003
Posts: 1608 (0.20 al dì)
Location: Arconate
Corso: Informatica
Anno: LAUREATO!!!
Time Online: 15 Days, 6:32:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma come cazzo programmi?

__________________
"Why, Sir, you find no man at all intellectual who is willing to leave London.
No, Sir, when a man is tired of London, he is tired of life; for there is in London all that life can afford."
(DR SAMUEL JOHNSON 1777)

MSN andrea.poretti(at)hotmail.it

27-03-2006 19:33
Click Here to See the Profile for Skilotto83 Click here to Send Skilotto83 a Private Message Find more posts by Skilotto83 Add Skilotto83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lughes
libero Pensatore

User info:
Registered: Feb 2003
Posts: 478 (0.06 al dì)
Location: Milano - Prato Sesia
Corso: TiCOM
Anno:
Time Online: 11 Days, 2:44:59 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Skilotto83
ma come cazzo programmi?


è solo una simulazione di output...vedi di abbassare i toni

__________________
...più beviamo più vinciamo e tanti gol possiamo far, e la Pratese stravincerà, noi che siamo gli invincibili e per questo siamo qui, per poter dire RITIRATEVI!!!

27-03-2006 20:20
Click Here to See the Profile for lughes Click here to Send lughes a Private Message Find more posts by lughes Add lughes to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.21 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non riesco a capire: vuoi fare in modo che tutte le stringhe in input restino intere?

__________________
?

27-03-2006 21:41
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lughes
libero Pensatore

User info:
Registered: Feb 2003
Posts: 478 (0.06 al dì)
Location: Milano - Prato Sesia
Corso: TiCOM
Anno:
Time Online: 11 Days, 2:44:59 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by yeah
Non riesco a capire: vuoi fare in modo che tutte le stringhe in input restino intere?


no no...quello è impossibile...voglio però che non taglia la visualizzazione delle lettere a metà...non so l'idea che mi è venuta è di mettere tre puntini di sospensione per non troncare le parole...e fin qui tutto ok...solo che lo faccio tramite un conteggio fisso delle lettere della stringa e non potendo utilizzare un font monospaziale non sono allineate...
è difficile da spiegare...nn so se avete capito...

faccio un'altra simulazione di output

-------------------------------
| bababbababababba...|
|csscxsxsxsxsxsxsxs... |
|cdscxsxsxsxsxsxsx... |
|ccddcdscdcddsccdscd...|
|cdcdc |
------------------------------
i segni meno e le pipe sono la grandezza della lista che nn vengono visualizzate...

__________________
...più beviamo più vinciamo e tanti gol possiamo far, e la Pratese stravincerà, noi che siamo gli invincibili e per questo siamo qui, per poter dire RITIRATEVI!!!

27-03-2006 22:44
Click Here to See the Profile for lughes Click here to Send lughes a Private Message Find more posts by lughes Add lughes to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.21 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non afferro, magari uno screenshot potrebbe rendere l'idea.

Le stringhe in input da dove arrivano? File? Processo?
E poi perchè non puoi usare un font monospaziato? O meglio perchè hai problemi di font? Non stai usando java da console?

__________________
?

27-03-2006 23:54
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ripe
- up in the mountains -

User info:
Registered: Jun 2002
Posts: 9469 (1.14 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

In effetti la richiesta non è per niente chiara...

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»

28-03-2006 07:42
Click Here to See the Profile for ripe Click Here to See the Blog of ripe Click here to Send ripe a Private Message Find more posts by ripe Add ripe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
UZI
free pain dispenser

User info:
Registered: Mar 2003
Posts: 2211 (0.28 al dì)
Location: monza - troppi fighetti
Corso: com. dig.
Anno: Dottor Morte
Time Online: 14 Days, 4:46:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

aaahhh... io forse ho capito...

cioè, tu vuoi in pratica che i bordi siano tutti belli allineati? una questione estetica insomma?

beh, non vedo molta alternativa all'uso di un font monospaziale... a meno che trovi una classe che fornisca funzioni di formattazione del testo in output sullo schermo che ti permetta di "giustificare" il testo.

__________________
those who test will find a bullet in they chest
put ta rest
by a brotha who was hopeless
grow up broke on tha rope of insanity
how many pistols smoking coming from a broken family

28-03-2006 08:49
Click Here to See the Profile for UZI Click Here to See the Blog of UZI Click here to Send UZI a Private Message Find more posts by UZI Add UZI to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lughes
libero Pensatore

User info:
Registered: Feb 2003
Posts: 478 (0.06 al dì)
Location: Milano - Prato Sesia
Corso: TiCOM
Anno:
Time Online: 11 Days, 2:44:59 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by UZI
aaahhh... io forse ho capito...

cioè, tu vuoi in pratica che i bordi siano tutti belli allineati? una questione estetica insomma?

beh, non vedo molta alternativa all'uso di un font monospaziale... a meno che trovi una classe che fornisca funzioni di formattazione del testo in output sullo schermo che ti permetta di "giustificare" il testo.


si esatto...il problema è che è un xlet per il dtt e per seguire lo standard mhp devo utilizzare quel font che nn è monospaziale...
quindi nessuno sa se esiste un'altro metodo?

cmq grazie per l'aiuto

__________________
...più beviamo più vinciamo e tanti gol possiamo far, e la Pratese stravincerà, noi che siamo gli invincibili e per questo siamo qui, per poter dire RITIRATEVI!!!

28-03-2006 23:54
Click Here to See the Profile for lughes Click here to Send lughes a Private Message Find more posts by lughes Add lughes to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.21 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged


quindi nessuno sa se esiste un'altro metodo?

eh... mi sa che senza font monospaziale non si può fare granchè... a meno che trovi un modo per distribuire i caratteri e ottenere un allineamento giustificato stile Word, non so se puoi avere un controllo così diretto sui caratteri (devi poter piazzare ogni carattere in una certa posizione a livello di pixel).

__________________
?

29-03-2006 13:57
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 04:21.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.049 seconds (73.11% PHP - 26.89% MySQL) con 27 query.