Subtitulo o subimagen
He solucionado unos prblemas de transcodificacion.
Ya lo tengo todo listo y bien.
Pero cuando creo el DVD me sale un cartel que dice lo siguiente.
EL SUBTITULO O LA SUBIMAGEN ES DEMASIADO COMPLEJO PARA PODER CODIFICARLO.
No entiendo que es lo que puede ser complejo.
Hay 9 subtitulados pero no creo que sea ese el problema.
Los botones que es a lo que creo llama subimagen... Están hechos en adobe todos o sea que no sé qué puede ser.
Por favor si alguien pudiera ayudarme lo agardecería mucho.
GRACIAS.
Franco Tedesco.
http://lacondicion.blogspot.com/
Normalmente este error se produce por dos razones:
Porque has elegido una fuente demasiado compleja.
Porque hay demasiados caracteres por subtítulo.
Prueba a poner una fuente sencilla, (arial) o a partir en dos subtítulos los que sean demasiado largos.
Jorge Mochon
http://www.adobelabo.com
Similar Messages
-
Hola,queria saber cual es si es que lo hay algun programilla para poder incluir subtitulos en los archivos de video y evidentemente que se vean, si alguien lo sabe y decide compartirlo conmigo se lo agradecere
holas, soy ricardo de peru... pobre infelices los q solo saben joder xq solo hablan ingles... en fin... aqui repuestas:
1. no conozco ningun programa que le agregue subtitulos a los videos de ipod... en el DIVX se pueden agregar, pero la pantalla del ipod es muy chika como pa leerlos bien... tendrias q intentar.
2. sobre el sonido o la falta de este: me paso algo parecido el otro dia que agregue unos videos de The Strokes. Pero mi problema fue que al convertirlos para el ipod con el QuickTime Pro, no convertia el sonido y estaban mudos (me di cuenta cuando estaba en el ipod y no escuchaba nada)... entonces utilize el VIDEORA (es gratis, busca la web en google) y no solo es mas rapido, sino q no tiene problemas
espero les ayude
cualquier cosa a mi mail en GMAIL: [email protected]
suerte
gomeeta
BLACK iPOD 30GB 5G Windows XP amd -
Mi película no tiene subtitulos.
¿Por qué mi película EL TOPO, no tiene subtitulos?
Estoy muy molesto. Ya puse mi queja, y nadie me contesta.Google translate?
My screen has lighting, but is hard to see that the other applications work well, which means???
- Do you have brightness (Settings>Brightness and Wallpaper ) turned fully up?
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings (If you can)
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
HT3775 No se miran los subtitulos
En el iPhone 4S al mirar un video con subtítulos no se miran los subtitulos
Franco, cuando tengas una pregunta nueva, abre un tema nuevo, no la entierres en un hilo antiguo no relacionado. Y por favor, no escribas todo en mayúsculas. Fuera de que es más difícil de leer en pantalla, en la Internet se considera el equivalente de gritar.
Por último, te sugiero no publicar tu dirección de correo electrónico en un foro público como éste, salvo que no te importe recibir más correo no deseado. -
I know i'm not the designer girl type, but i'm really trying my best with a website i'm needing.
Using the Lightbox gallery, i saw a boring problem that i cant fix....
The Next, Previous, close and loading buttons arent appearing
I try to verify the folder and link, but it looks ok ... Can anyone take a look for me?
Thanks^^
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>FINAL FANTASY RPG - By Fernanda Parker</title>
<!-- TemplateEndEditable -->
<style type="text/css">
<!--
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #666666;
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
background-image: url(../Images/Layout/bg-stripes.gif);
background-repeat: repeat;
background-color: #FFFFE2;
.oneColElsCtr #container {
width: 46em;
background: #FFFFFF;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the body element. */
.oneColElsCtr #mainContent {
padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
-->
</style>
<script src="../includes/jquery-1.4.2.js" type="text/javascript"></script>
<script src="../jQuery/js/jquery.jsocial.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js" type="text/javascript"></script>
<script src="../js/jquery-1.4.2.js" type="text/javascript"></script>
<script src="../Scripts/jquery.js" type="text/javascript"></script>
<script src="../Scripts/lightbox.js" type="text/javascript"></script>
<script src="../Scripts/jquery.js" type="text/javascript"></script>
<script src="../Scripts/lightbox.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
//-->
</script>
<link href="../jQuery/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/xml">
<!--
<oa:widgets>
<oa:widget wid="2149023" binding="#social" />
<oa:widget wid="2102522" binding="#navigation" />
<oa:widget wid="2127022" binding="#gallery" />
<oa:widget wid="2624026" binding="#OAWidget" />
</oa:widgets>
-->
</script>
<style type="text/css">
.oneColElsCtr table tr td table {
font-family: Verdana, Geneva, sans-serif;
color: #97934A;
.oneColElsCtr table tr td table {
color: #6C5C44;
.oneColElsCtr table tr td table {
font-size: 12%;
.oneColElsCtr table tr td table {
font-size: 12px;
.oneColElsCtr table tr td table tr th table tbody tr td img {
text-align: center;
#apDiv1 {
position:absolute;
left:879px;
top:198px;
width:143px;
height:42px;
z-index:1;
#apDiv2 {
position:absolute;
left:814px;
top:178px;
width:109px;
height:56px;
z-index:1;
.Titulo1 {
color: #C4AF87;
font-weight: bold;
font-size: 18px;
font-family: Verdana, Arial, Helvetica, sans-serif;
line-height: normal;
text-transform: capitalize;
.Corpo {
color: #C4AF87;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-style: normal;
line-height: normal;
font-weight: lighter;
font-variant: normal;
text-transform: none;
list-style-position: inside;
list-style-type: disc;
.Links {
color: #C4AF87;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-style: oblique;
line-height: normal;
font-weight: normal;
font-variant: normal;
text-transform: capitalize;
text-decoration: underline;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
body,td,th {
color: #C4AF87;
list-style-type: square;
a {
font-size: 14px;
</style>
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable --><!-- TemplateParam name="Subtitulos" type="boolean" value="true" -->
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/* BeginOAWidget_Instance_2102522: #navigation */
ul#navigation {
position: fixed;
margin: 0px;
padding: 0px;
top: 0px;
left: 10px;
list-style: none;
z-index:999999;
width:auto;
ul#navigation li {
display:inline;
float:left;
width:102px;
ul#navigation li a {
display: block;
float:left;
color:#000000;
margin-top: -2px;
height: 25px;
width:100px;
background-repeat:no-repeat;
background-position:50% 10px;
background-color:transparent;
border:3 solid #000000;
-moz-border-radius:0px 0px 10px 10px;
-webkit-border-bottom-right-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-khtml-border-bottom-right-radius: 10px;
-khtml-border-bottom-left-radius: 10px;
text-decoration:none;
text-align:center;
padding-top:80px;
opacity: 0.7;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);
ul#navigation li a:hover{
background-color:transparent;
ul#navigation .home a{
background-image: url(../Images/Navegador/Home.png);
ul#navigation .about a{
background-image: url(../Images/Navegador/News.png);
ul#navigation .search a{
background-image: url(../Images/Navegador/Sistema.png);
ul#navigation .podcasts a{
background-image: url(../Images/Navegador/Fanarea.png);
ul#navigation .rssfeed a{
background-image: url(../Images/Navegador/Blog.png);
ul#navigation .photos a{
background-image: url(../Images/Navegador/Download.png);
ul#navigation .contact a{
background-image: url(../Images/Navegador/Contato.png);
/* EndOAWidget_Instance_2102522 */
</style>
<link rel="shortcut icon" href="/favicon.ico" />
<link href="../css/lightbox.css" rel="stylesheet" type="text/css" />
<link href="../css/sample_lightbox_layout.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/* BeginOAWidget_Instance_2127022: #gallery */
.lbGallery {
/*gallery container settings*/
background-color: #c4af87;
padding-left: 20px;
padding-top: 20px;
padding-right: 20px;
padding-bottom: 20px;
width: 540px;
height: auto;
text-align:center;
.lbGallery ul { list-style: none; margin:0;padding:0; }
.lbGallery ul li { display: inline;margin:0;padding:0; }
.lbGallery ul li a{text-decoration:none;}
.lbGallery ul li a img {
/*border color, width and margin for the images*/
border-color: transparent;
border-left-width: 10px;
border-top-width: 10px;
border-right-width: 10px;
border-bottom-width: 20px;
margin-left:5px;
margin-right:5px;
margin-top:5px;
margin-bottom:5px:
.lbGallery ul li a:hover img {
/*background color on hover*/
border-color: #ffffe2;
border-left-width: 10px;
border-top-width: 10px;
border-right-width: 10px;
border-bottom-width: 20px;
#lightbox-container-image-box {
border-top: 0px none #ffffff;
border-right: 0px none #ffffff;
border-bottom: 0px none #ffffff;
border-left: 0px none #ffffff;
#lightbox-container-image-data-box {
border-top: 0px;
border-right: 0px none #ffffff;
border-bottom: 0px none #ffffff;
border-left: 0px none #ffffff;
/* EndOAWidget_Instance_2127022 */
</style>
<style type="text/css">
/* BeginOAWidget_Instance_2624026: #OAWidget */
.element{
width:140px;
height:70px;
background-color:transparent;
color:#333333;
float:left;
margin-right:10px;
overflow:hidden;
-moz-transition-property:height;
-moz-transition-duration:1s;
-o-transition-property:height;
-o-transition-duration:1s;
-webkit-transition-property:height;
-webkit-transition-duration:1s;
.element img{
width:140px;
height:70px;
.element:hover{
height:160px;
-moz-transition-property:height;
-moz-transition-duration:1s;
-o-transition-property:height;
-o-transition-duration:1s;
-webkit-transition-property:height;
-webkit-transition-duration:1s;
.empty{
clear:both;
height:20px;
background-color:#333333;
/* EndOAWidget_Instance_2624026 */
</style>
</head>
<Body lang="pt" onload="MM_preloadImages('../Images/Botoes/Jobs2.png','../Images/Botoes/Magias2.png','../ Images/Botoes/Summons2.png','../Images/Botoes/Races2.png')" onselectstart="return false">
<table width="1116" border="0" align="center" cellpadding="0" cellspacing="0" lang="pt">
<tr>
<th height="78" background="../Images/Layout/repeatleftTOP2.png" scope="col"> </th>
<th align="left" valign="top" background="../Images/Layout/teste-fundo-horizontal.png" scope="col"><p> </p>
<table width="1009" border="0" cellpadding="0" cellspacing="0" class="Corpo">
<!-- TemplateBeginRepeat name="Repeat_socials" -->
<tr>
<th width="100" scope="col"> </th>
<th width="727" align="right" scope="col"><a href="https://www.facebook.com/pages/Final-Fantasy-RPG/260352977361922" target="_new"><img src="../Images/icons/facebook.png" alt="icon_facebook" name="FacebookButton" width="50" height="50" id="FacebookButton" lang="pt" /></a><a href="https://twitter.com/ferparker" target="_new"><img src="../Images/icons/twitter.png" alt="icon_twitter" name="TwitterButton" width="50" height="50" id="TwitterButton" /></a><a href="http://finalfantasyrpg.wordpress.com" target="_new"><img src="../Images/icons/rss.png" alt="icon_rss" name="RssButton" width="50" height="50" id="RssButton" /></a></th>
</tr>
<!-- TemplateEndRepeat -->
</table></th>
<th background="../Images/Layout/repeatrightTOP21.png" scope="col"> </th>
</tr>
<tr>
<th width="50" height="46" background="../Images/Layout/ribbon-left.png" scope="col"> </th>
<th width="1012" background="../Images/Layout/ribbon-main.png" scope="col"><span class="Corpo">
<script type="text/javascript">
// BeginOAWidget_Instance_2149023: #social
$('.social').jsocial({
twitter : 'myID',
facebook : 'facebook.com/myID',
flickr : 'myID_2',
delicious : 'myID_3',
linked : 'linkedin.com/in/myID',
youtube : 'youtube.com/myID',
feed : 'myID_4',
friendfeed : 'myID_5',
digg : 'myID_6',
lastfm : 'myID_7',
center : false,
inline : true,
small : false,
newPage : false
// EndOAWidget_Instance_2149023
</script>
</span></th>
<th width="54" background="../Images/Layout/ribbon-right.png" scope="col"> </th>
</tr>
<tr>
<td background="../Images/Layout/repeatleft.png"> </td>
<td align="center" valign="top" background="../Images/Layout/bg-main.gif"><table width="1012" height="1086" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_">
<tbody>
<tr>
<td width="792" height="1086" valign="top" background="news.php_arquivos/bg-main.gif"><!-- TemplateBeginEditable name="CorpoEditavel" -->
<div align="center">
<div id="maincontent">
<div align="center">
<table width="701" height="31" border="0" align="center" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td align="center"><a href="../ffrpg.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Sistema','','../Images/Botoes/Sistema2.png',0)"><img src="../Images/Botoes/Sistema1.png" alt="Sistema" name="Sistema" width="120" height="37" border="0" id="Sistema" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image15','','../Images/Botoes/Races2.png',1)"><img src="../Images/Botoes/Races1.png" name="Image15" width="92" height="37" border="0" id="Image15" /></a><a href="../jobs.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Jobs','','../Images/Botoes/Jobs2.png',1)"><img src="../Images/Botoes/Jobs1.png" alt="Jobs" name="Jobs" width="79" height="37" border="0" id="Jobs" /></a><a href="../magia.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Magias','','../Images/Botoes/Magias2.png',1)"><img src="../Images/Botoes/Magias1.png" alt="Magias" name="Magias" width="106" height="37" border="0" id="Magias" /></a><a href="../summons.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Summons','','../Images/Botoes/Summons2.png',1)"><img src="../Images/Botoes/Summons1.png" alt="Summons" name="Summons" width="144" height="37" border="0" id="Summons" /></a></td>
</tr>
</tbody>
</table>
<p class="Corpo"><script type="text/javascript">
// BeginOAWidget_Instance_21490</script></p>
<table width="616" border="0" cellpadding="0" cellspacing="0" class="Corpo">
<tr>
<th width="25" height="25" background="../Images/Layout/table-topleft.gif" scope="col"> </th>
<th width="566" background="../Images/Layout/bg-table.gif" scope="col"> </th>
<th width="25" background="../Images/Layout/table-topright.gif" scope="col"> </th>
</tr>
<tr>
<td width="25" height="18" background="../Images/Layout/bg-table.gif"> </td>
<th width="566" background="../Images/Layout/bg-table.gif" scope="col"><p class="Corpo"><img src="../Images/Linhas/Sistema---Sistema.png" alt="RaceLine" height="74" width="500" /></p>
<table width="556" border="0" cellpadding="0" cellspacing="0" class="Corpo">
<tr>
<th width="200" height="203" scope="col"><table width="180" height="88" border="0" cellpadding="0" cellspacing="0">
<tr>
<th class="Corpo" scope="col"><img src="../Images/Stuff/Logo-Fundo-Tranp.png" alt="LogoFFRPG" width="180" height="180" /></th>
</tr>
</table></th>
<th width="356" class="Corpo" scope="col">Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG</th>
</tr>
</table>
<p class="Corpo">Final Fantasy RPG Final Fantasy RPG Final Fantasy </p>
<p class="Corpo">RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG Final Fantasy RPG </p></th>
<td width="25" background="../Images/Layout/bg-table.gif"> </td>
</tr>
<tr>
<td width="25" height="23" background="../Images/Layout/table-bottomleft.gif"> </td>
<th width="566" background="../Images/Layout/bg-table.gif" scope="col"> </th>
<td width="25" background="../Images/Layout/table-bottomright.gif"> </td>
</tr>
</table>
</div>
<p align="center" class="Corpo"><br />
</p>
<div align="center" class="Corpo">
<table align="center" border="0" cellpadding="0" cellspacing="6">
<tbody>
<tr>
<td width="656"><div align="center">
<p class="Corpo"><img src="../Images/Layout/Divider Linha.png" alt="divider" height="64" width="494" /></p>
<p> </p>
</div></td>
</tr>
<tr>
<td width="656" align="center" valign="top"><p class="Titulo1">Título 1
GALLERY PLUS
</p>
<p class="Titulo1"> </p>
<div id="gallery" class="lbGallery">
<ul>
<li> <a href="../Images/Jobs/Mago Negro.png" title="AAAAAAAAAAAAAAA"><img src="../Images/Jobs/thumbnails/Mago-NegroThumb.png" alt="Flower" width="51" height="100" /></a> </li>
<li> <a href="../Images/Jobs/Alquimista.png"><img src="../Images/Jobs/thumbnails/AlquimistaThumb.png" alt="Tree" width="46" height="100" /></a> </li>
<li> <a href="../Images/Jobs/Arqueiro.png"><img src="../Images/Jobs/thumbnails/ArqueiroThumb.png" alt="" width="87" height="100" /></a> </li>
<li> <a href="../Images/Jobs/Bardo.png"><img src="../Images/Jobs/thumbnails/BardoThumb.png" alt="" width="54" height="100" /></a> </li>
<li> <a href="../Images/Jobs/Cavaleiro das Runas.png"><img src="../Images/Jobs/thumbnails/Cavaleiro-das-RunasThumb.png" alt="" width="53" height="100" /></a><a href="../Images/Jobs/Apostador.png"><img src="../Images/Jobs/thumbnails/ApostadorThumb.png" alt="Flower" width="85" height="100" /></a><a href="../Images/Jobs/Cavaleiro Magico.png"><img src="../Images/Jobs/thumbnails/Cavaleiro-MagicoThumb.png" alt="Tree" width="70" height="100" /></a><a href="../Images/Jobs/Cavaleiro Negro.png"><img src="../Images/Jobs/thumbnails/Cavaleiro-Negro.png" alt="" width="76" height="100" /></a><a href="../Images/Jobs/Invocador Negro.png"><img src="../Images/Jobs/thumbnails/Invocador-NegroThumb.png" alt="" width="51" height="100" /></a><a href="../Images/Jobs/Ladrao.png"><img src="../Images/Jobs/thumbnails/LadraoThumb.png" alt="" width="73" height="100" /></a></li>
</ul>
</div>
<script type="text/javascript">
// BeginOAWidget_Instance_2127022: #gallery
$(function(){
$('#gallery a').lightBox({
imageLoading: '<img src="../Images/lightbox/lightbox-ico-loading.gif" width="32" height="32" alt="Ico_Loading" />', // (string) Path and the name of the loading icon
imageBtnPrev: '<img src="../Images/lightbox/lightbox-btn-prev.gif" width="63" height="32" alt="Ico_Previous" />', // (string) Path and the name of the prev button image
imageBtnNext: '<img src="../Images/lightbox/lightbox-btn-next.gif" width="63" height="32" />', // (string) Path and the name of the next button image
imageBtnClose: '<img src="../Images/lightbox/lightbox-btn-close.gif" width="66" height="22" />', // (string) Path and the name of the close btn
imageBlank: '<img src="../Images/lightbox/lightbox-blank.gif" width="1" height="1" />', // (string) Path and the name of a blank image (one pixel)
fixedNavigation: true, // (boolean) Boolean that informs if the navigation (next and prev button) will be fixed or not in the interface.
containerResizeSpeed: 400, // Specify the resize duration of container image. These number are miliseconds. 400 is default.
overlayBgColor: "#999999", // (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color.
overlayOpacity: .6, // (integer) Opacity value to overlay; inform: 0.X. Where X are number from 0 to 9
txtImage: 'Image', //Default text of image
txtOf: 'of'
// EndOAWidget_Instance_2127022
</script>
<p> </p>
<p></p>
<p class="Corpo">Corpo de Texto Corpo de Texto Corpo de Texto Corpo de Texto Corpo de Texto Corpo de Texto Corpo de Texto Corpo de Texto Corpo de Texto Corpo de Texto Corpo de Texto Corpo de Texto Corpo de Texto </p>
<span class="Corpo"><a href="endereço do link" class="Links">Link</a></span></td>
</tr>
<tr>
<td width="656"><div align="center" class="Corpo"><img src="../Images/Sign_Up.png" alt="a" width="150" height="44" /><br />
</div></td>
</tr>
</tbody>
</table>
</div>
<p align="center" class="Corpo"> </p>
</div>
<p class="Corpo"><br />
</p>
</div>
<!-- TemplateEndEditable --></td>
<td width="220" colspan="6" valign="top" background="news.php_arquivos/bg-main.gif"><!-- TemplateBeginEditable name="LateralEditavel" -->
<div id="maincontent2">
<div align="center">
<p><span class="Corpo"><img src="../Images/Sign_Up.png" alt="News" name="Brass1" width="150" height="44" border="0" id="Brass1" title="News" /></span></p>
<table width="193" height="194" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<th width="192" height="508" background="../Images/Layout/bg-table.gif" scope="col"><table width="167" height="478" border="0" align="center" cellpadding="0" cellspacing="0" background="../Images/Layout/bg-table_002.gif">
<tr>
<th height="478" background="../Images/Layout/bg-main.gif" scope="col"><span class="Corpo"><img src="" alt="Banner" name="Banner" width="167" height="478" align="middle" class="Corpo" id="Banner" style="background-color: #FFFFE2" /></span></th>
</tr>
</table></th>
</tr>
</table>
<p><span class="Corpo"><img src="../Images/Sign_Down.png" alt="d" name="Brass2" width="150" height="44" id="Brass2" /></span></p>
<p> </p>
<p><span class="Corpo"></span></p>
</div>
</div>
<!-- TemplateEndEditable --></td>
</tr>
</tbody>
</table>
<p align="center"> </p></td>
<td background="../Images/Layout/repeatright.png"> </td>
</tr>
<tr>
<td height="103" background="../Images/Layout/Bottomleft-shadow.png"> </td>
<td background="../Images/Layout/footer.png"> </td>
<td background="../Images/Layout/Bottomright-shadow.png" background-repeat: no-repeat> </td>
</tr>
<tr>
<td height="10" colspan="3" background="../Images/dropshadow-bottom3.png"> </td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<div class="social"></div>
<p> </p>
<!-- TemplateBeginRepeat name="Repeat_Navegacao" -->
<ul id="navigation">
<li class="home"><a href="../index.html" class="Corpo">Home</a></li>
<li class="about"><a href="../news.html" class="Corpo">News</a></li>
<li class="search"><a href="../Sistema-FFRPG.html" class="Corpo">Sistema FFRPG</a></li>
<li class="photos"><a href="../downloads.html" class="Corpo">Downloads</a></li>
<li class="rssfeed"><a href="../favicon.png" class="Corpo">Blog</a></li>
<li class="podcasts"><a href="../fan_area.html" class="Corpo">FanArea</a></li>
<li class="contact"><a href="mailto:[email protected]" class="Corpo">Contato</a></li>
</ul>
<!-- TemplateEndRepeat --><script type="text/javascript">
// BeginOAWidget_Instance_2102522: #navigation
$(function() {
var d=300;
$('#navigation a').each(function(){
$(this).stop().animate({
'marginTop':'-80px'
},d+=150);
$('#navigation > li').hover(
function () {
$('a',$(this)).stop().animate({
'marginTop':'-2px'
},200);
function () {
$('a',$(this)).stop().animate({
'marginTop':'-80px'
},200);
// EndOAWidget_Instance_2102522
</script>
<p> </p>
<p> </p>
<p> </p>
<script language=JavaScript>
<!--
var mensagem="";
function clickIE() {if (document.all) {(mensagem);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(mensagem);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
</Body>
</html>Julie726 wrote:
Actually, I'm still having a problem getting those buttons to display before I worry about moving their positions.
They have been uploaded to the correct locations. I can't figure out why they don't display.
They don't display because the link to those buttons points to an "images" folder (lowercase I) but they're stored on the server in "Images" folder (capital I).
http://www.julieappelt.com/images/lightbox/lightbox-btn-close.gif does not work
http://www.julieappelt.com/Images/lightbox/lightbox-btn-close.gif works
It's usually best to avoid mixing cases when naming folders and files to avoid these issues, esp on Linux servers. Stick to all lowercase. -
Non-static method destroyApp(boolean) cannot be referenced from a static co
Hi guys, ive been writing, erasing and rewriting code, and finally my midlet runs well. It get complicated when i began to use the class Canvas, because the main process required values from the Canvas class. Im not sure if the program is well designed. Sugestions are apreciated.
Well, i used static public boolean hilo; to share that variable between classes, and its working, however there is just a final procedure I want to implement, and that is that terminate the midlet when the user press the erase button.
When I detect the button, i cant call the notifyDestroyed() method.
Here's the code
import java.io.*;
import javax.microedition.io.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class TS_Online extends MIDlet implements CommandListener {
public static Display display; // Objeto para que muestre en pantalla
private SSCanvas sscInicio; // Objeto canvas para mostrar imagenes
private Form frmServidor; // Objeto forma
private TextField ip1; // Direcci�n IP
private TextField ip2; // Direcci�n IP
private TextField ip3; // Direcci�n IP
private TextField ip4; // Direcci�n IP
private TextField puerto; // Puerto a conectarse
private Command cmdEntrada; // Objeto comando
private Command cmdSalida; // Objeto comando
private Command cmdVolver; // Objeto comando
// * Constructor *
public TS_Online() {
display = Display.getDisplay(this); // Obtiene la pantalla
sscInicio = new SSCanvas(); // Nueva forma
cmdEntrada = new Command("Entrada", Command.STOP, 2);
cmdSalida = new Command("Salida", Command.STOP, 2);
cmdVolver = new Command("Volver", Command.BACK, 1);
sscInicio.addCommand(cmdEntrada); // Coloca el comando Entrada
sscInicio.addCommand(cmdSalida); // Coloca el comando Salida
sscInicio.setCommandListener(this); // Define la forma que escucha comandos
ip1 = new TextField("Direcci�n IP:", "0", 3, TextField.NUMERIC); // Caja de texto
ip2 = new TextField(null, "0", 3, TextField.NUMERIC);
ip3 = new TextField(null, "0", 3, TextField.NUMERIC);
ip4 = new TextField(null, "0", 3, TextField.NUMERIC);
puerto = new TextField("Puerto:", "24300", 5, TextField.NUMERIC);
frmServidor = new Form("Configuraci�n"); // Titulo de la forma
frmServidor.append(ip1);
frmServidor.append(ip2);
frmServidor.append(ip3);
frmServidor.append(ip4);
frmServidor.append(puerto);
frmServidor.addCommand(cmdVolver); // Coloca el comando Salida
// * Metodos *
public void startApp() {
sscInicio.hilo = true; // Habilita el hilo
new Thread(sscInicio).start(); // Hilo en Canvas
display.setCurrent(sscInicio); // Define objeto a mostrar
sscInicio.setTitle("TicketShop S.A."); // Titulo de la forma
// Metodos comunes en todos los Midlet
public void pauseApp() {
System.out.println("*** Pausado ***");
sscInicio.hilo = false; // Detiene el hilo
public void destroyApp(boolean unconditional) {
sscInicio.hilo = false;
System.out.println("*** Terminado ***");
notifyDestroyed();
public void commandAction(Command c, Displayable s) {
if (c == cmdEntrada) {
if (sscInicio.img == sscInicio.ts) { // Configurar servidor
sscInicio.hilo = false;
sscInicio.ip = true;
System.out.println(sscInicio.hilo);
frmServidor.setCommandListener(this);
display.setCurrent(frmServidor);
} else {
sscInicio.valido(); // Tiquete valido
} else if (c == cmdSalida) {
sscInicio.invalido(); // Tiquete invalido
} else if (c == cmdVolver) { // Volver a la pantalla anterior
sscInicio.setCommandListener(this);
sscInicio.hilo = true; // Arranca el hilo
new Thread(sscInicio).start(); // Hilo en Canvas
display.setCurrent(sscInicio);
System.out.println(sscInicio.hilo);
// * Clase graficadora *
class SSCanvas extends Canvas implements Runnable {
private int sleepTime; // Tiempo de retrazo
static public boolean ip; // Configurar IP
static public boolean hilo; // Continuar hilo
static public Image ts = null; // Contenedor imagen
static public Image rojo = null; // Contenedor imagenpri
static public Image verde = null; // Contenedor imagen
static public Image img = null; // Contenedor imagen
static public String mensaje = null; // Cadena de salida
//private CommConnection cc = null; // Conector para puerto
private SocketConnection sc = null; // Conector para red
private SocketConnection cc = null; // Conector para red
public SSCanvas() {
// Cargamos las im�genes a usar
try {
ts = Image.createImage("/TicketShop.PNG"); // Procedimiento para cargar las imagenes
rojo = Image.createImage("/Rojo.PNG"); // Procedimiento para cargar las imagenes
verde = Image.createImage("/Verde.PNG"); // Procedimiento para cargar las imagenes
} catch (IOException e) {} // Error si no encuentra las imagenes
void iniciar() {
img = ts; // Imagen de bienvenida
mensaje = "Conectando al servidor"; // Mensaje de inicio
// Tiempo de espera para configurar servidor
for (sleepTime = 1;sleepTime <= 3; sleepTime++) {
try {
mensaje = mensaje + "."; // Mensaje de inicio
repaint(); // Redibuja la pantalla
serviceRepaints(); // Espera que termine
Thread.sleep(1000);
} catch (InterruptedException e) {
System.out.println(e.toString());
sleepTime = 50;
img = verde;
System.out.println("Iniciar");
void codigo() {
void valido() {
img = verde; // Imagen OK
mensaje = "Tiquete OK"; // Tiquete valido
AlertType.CONFIRMATION.playSound(TS_Online.display); // Sonido
void invalido() {
img = rojo; // Imagen OK
mensaje = "Tiquete Inv�lido"; // Tiquete valido
AlertType.ERROR.playSound(TS_Online.display); // Sonido
// thread que contiene el game loop
public void run() {
System.out.println("*** Hilo arrancado ***");
if (img == null)
iniciar();
while (hilo) {
System.out.println("Hilo");
// Actualizar pantalla
repaint(); // Redibuja la pantalla
serviceRepaints(); // Espera que termine
try {
Thread.sleep(sleepTime);
} catch (InterruptedException e) {
System.out.println(e.toString());
public void keyPressed(int keyCode) {
if (keyCode == -8) { // Si presiona borrar
hilo = false; // Salir de la aplicacion
System.out.println("*** Terminado ***");
TS_Online.destroyApp(true);
notifyDestroyed();
public void paint(Graphics g) {
// Borrar la pantalla
g.setColor(255,255,255);
g.fillRect (0, 0, getWidth(), getHeight());
// Coloca la imagen correspondiente
g.drawImage (img, getWidth()/2, 10, Graphics.HCENTER|Graphics.TOP);
// Poner texto
Font fuente = Font.getFont (Font.FACE_PROPORTIONAL, Font.STYLE_BOLD, Font.SIZE_MEDIUM);
g.setFont(fuente);
g.setColor(0,0,0);
g.drawString(mensaje, getWidth()/2, getHeight() - 40,Graphics.TOP|Graphics.HCENTER);
}Im using the boolean hilo to stop the thread. I seems to work fine for me. By the way, im using 4 textFields to get the IP address, however they appear one over the other, id like to see them one next to the other, or a better way to validate an IP address.
Thanks for the help!!Well, the solution was really easy, i just needed to create a reference to the midlet inside the Canvas class public SSCanvas(MIDlet m), so i got this new code, however, it seems cool in the emulator but i still cant get two comands in a row in the phone.
import java.io.*;
import javax.microedition.io.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import javax.microedition.rms.*;
public class TS_Online extends MIDlet implements CommandListener {
public static Display display; // Objeto para que muestre en pantalla
private SSCanvas sscInicio = null; // Objeto canvas para mostrar imagenes
private Form frmServidor; // Objeto forma
private StringItem subtitulo; // Subtitulo de la forma
private TextField[] ip; // Direcci�n IP
private TextField puerto; // Puerto a conectarse
private Command cmdEntrada; // Objeto comando
private Command cmdSalida; // Objeto comando
private Command cmdVolver; // Objeto comando
private String direccion; // Direcci�n del socket
private RecordStore rsDireccion = null; // Almacenamiento RMS
// * Constructor *
public TS_Online() {
display = Display.getDisplay(this); // Obtiene la pantalla
sscInicio = new SSCanvas(this); // Nueva forma con ref este midlet
cmdEntrada = new Command("Entrada", Command.STOP, 2);
cmdSalida = new Command("Salida", Command.STOP, 2);
cmdVolver = new Command("Volver", Command.BACK, 1);
sscInicio.addCommand(cmdEntrada); // Coloca el comando Entrada
sscInicio.addCommand(cmdSalida); // Coloca el comando Salida
sscInicio.setTitle("TicketShop S.A."); // Titulo del canvas
// Constructor forma Configurar Servidor
ip = new TextField[4]; //
ip[0] = new TextField(null, "190", 3, TextField.NUMERIC); // Caja de texto
ip[1] = new TextField(null, "65", 3, TextField.NUMERIC);
ip[2] = new TextField(null, "161", 3, TextField.NUMERIC);
ip[3] = new TextField(null, "158", 3, TextField.NUMERIC);
puerto = new TextField("Puerto:", "24300", 5, TextField.NUMERIC);
ip[0].setLayout(Item.LAYOUT_2); // Coloca los elementos pegados
ip[1].setLayout(Item.LAYOUT_2);
ip[2].setLayout(Item.LAYOUT_2);
ip[3].setLayout(Item.LAYOUT_2);
frmServidor = new Form("Configuraci�n"); // Titulo de la forma
subtitulo = new StringItem("Direccion IP:", "");
frmServidor.append(subtitulo); // Coloca cadena de texto
frmServidor.append(ip[0]);
frmServidor.append(ip[1]);
frmServidor.append(ip[2]);
frmServidor.append(ip[3]);
frmServidor.append("\n ");
frmServidor.append(puerto);
frmServidor.addCommand(cmdVolver); // Coloca el comando Salida
// * Metodos *
public void startApp() {
sscInicio.hilo = true; // Habilita el hilo
new Thread(sscInicio).start(); // Hilo en Canvas
sscInicio.setCommandListener(this); // Define la forma que escucha comandos
display.setCurrent(sscInicio); // Define objeto a mostrar
// Metodos comunes en todos los Midlet
public void pauseApp() {
System.out.println("*** Pausado ***");
sscInicio.hilo = false; // Detiene el hilo
public void destroyApp(boolean unconditional) {
public void salir() {
sscInicio.hilo = false;
System.out.println("*** Terminado ***");
destroyApp(false); // Destruir objetos
notifyDestroyed(); // Salir de la aplicacion
String cargarIP() {
String cadena;
// Cargar la direccion del servidor
try {
rsDireccion = RecordStore.openRecordStore("ipRecordStore", true ); // Crear si no existe
} catch (Exception error) {}
try {
byte[] byteOutputData = rsDireccion.getRecord(1); // Lee el primer registro
cadena = new String(byteOutputData);
System.out.println("Cargada: " + cadena);
} catch (Exception error) {
cadena = "190.65.161.158:24300";
try {
rsDireccion.closeRecordStore(); // Cerrar
} catch (Exception error) {}
return cadena;
void guardarIP (String cadena) {
// Almacenar la direcci�n ip y puerto
try {
RecordStore.deleteRecordStore("ipRecordStore"); // Borrar si existe
} catch (Exception error) {}
try {
rsDireccion = RecordStore.openRecordStore("ipRecordStore", true ); // Crear si no existe
} catch (Exception error) {}
try {
byte[] byteOutputData = cadena.getBytes(); // Almacena los datos
rsDireccion.addRecord(byteOutputData, 0, byteOutputData.length);
System.out.println("Guardada: " + cargarIP()); // rsDireccion.getNumRecords()
} catch (Exception error) {}
try {
rsDireccion.closeRecordStore(); // Cerrar
} catch (Exception error) {}
void mostrarIP(String cadena) {
int i, j=0, k;
for (k=0; k<=2; k++) {
i = cadena.indexOf('.', j); // Posicion del punto
if (i < 0) {
ip[k].setString("0"); // Si hay error coloca 0
} else {
ip[k].setString(cadena.substring(j, i)); // Extrae direccion
j = i + 1;
i = cadena.indexOf(':', j); // Posicion del punto
ip[3].setString(cadena.substring(j, i)); // Extrae direccion
i = cadena.lastIndexOf(':'); // Posicion dos puntos
puerto.setString(cadena.substring(i+1)); // Extrae puerto
public void commandAction(Command c, Displayable s) {
if (c == cmdEntrada) {
if (sscInicio.img == sscInicio.ts) { // Configurar servidor
sscInicio.hilo = false;
direccion = cargarIP (); // Cargar del record
mostrarIP(direccion); // Mostrar en la forma
System.out.println("*** OK ***");
frmServidor.setCommandListener(this);
display.setCurrent(frmServidor);
} else {
sscInicio.entrada = true; // Tiquete entrada
AlertType.ERROR.playSound(TS_Online.display); // Sonido
} else if (c == cmdSalida) {
sscInicio.entrada = false; // Tiquete salida
AlertType.ERROR.playSound(TS_Online.display); // Sonido
} else if (c == cmdVolver) { // Volver a la pantalla anterior
direccion = ip[0].getString() + "." + ip[1].getString() + "."
+ ip[2].getString() + "." + ip[3].getString() + ":" + puerto.getString();
guardarIP(direccion); //Almacenar en record
sscInicio.setCommandListener(this);
sscInicio.hilo = true; // Arranca el hilo
new Thread(sscInicio).start(); // Hilo en Canvas
display.setCurrent(sscInicio);
System.out.println(sscInicio.hilo);
// * Clase graficadora *
class SSCanvas extends Canvas implements Runnable {
private int sleepTime; // Tiempo de retrazo
static public boolean entrada = true; // Tiquete de entrada
static public boolean hilo; // Continuar hilo
static public Image ts = null; // Contenedor imagen
static public Image rojo = null; // Contenedor imagenpri
static public Image verde = null; // Contenedor imagen
static public Image img = null; // Contenedor imagen
static public String mensaje = null; // Cadena de salida
static public String mensaje2 = ""; // Cadena de salida Codigo de barras
MIDlet midlet; // Enlace al midlet inicial
CommConnection cc = null; // Conector para puerto
//SocketConnection sc = null; // Conector para red
//SocketConnection cc = null; // Conector para red
public SSCanvas(MIDlet m) {
midlet = m; // Referencia al MIDlet iniciado
// Cargamos las im�genes a usar
try {
ts = Image.createImage("/TicketShop.PNG"); // Procedimiento para cargar las imagenes
rojo = Image.createImage("/Rojo.PNG"); // Procedimiento para cargar las imagenes
verde = Image.createImage("/Verde.PNG"); // Procedimiento para cargar las imagenes
} catch (IOException e) {} // Error si no encuentra las imagenes
img = ts; // Imagen de bienvenida
mensaje = "Conectando";
mensaje2 = ""; // Mensaje de inicio
void iniciar() {
img = ts; // Imagen de bienvenida
// Tiempo de espera para configurar servidor
for (sleepTime = 1;sleepTime <= 3; sleepTime++) {
try {
mensaje = mensaje + "."; // Mensaje de inicio
repaint(); // Redibuja la pantalla
serviceRepaints(); // Espera que termine
Thread.sleep(1000);
} catch (InterruptedException e) {
System.out.println(e.toString());
mensaje = "Conectado!";
img = verde;
repaint(); // Redibuja la pantalla
serviceRepaints(); // Espera que termine
sleepTime = 50;
System.out.println("Iniciar");
void codigo() {
try {
System.out.println("Leyendo");
CommConnection cc = (CommConnection)Connector.open("comm:com0;baudrate=9600");
//cc = (SocketConnection)Connector.open("socket://127.0.0.1:24300");
//int baudrate = cc.getBaudRate();
InputStream ic = cc.openInputStream(); // Entrada serial
//OutputStream oc = cc.openOutputStream();
StringBuffer sbCodigo = new StringBuffer(); // Cadena de diferentes tipos de datos
int ch = 255;
while(ch > 32) {
ch = ic.read();
//oc.write(ch);
if (ch > 32)
sbCodigo.append((char)ch);
mensaje2 = sbCodigo.toString(); // Codigo de barras
if (mensaje2.equals("2864634059CULIB")) {
valido();
} else {
invalido();
ic.close(); // Cierra las conexiones
//oc.close();
cc.close();
} catch (Exception e) {
Alert a = new Alert("Error!", e.toString(), rojo, AlertType.ERROR);
a.setTimeout(Alert.FOREVER); // Alerta hasta que oprima boton
TS_Online.display.setCurrent(a); // Despues de la alerta vuelve a Inicio
try {
Thread.sleep(5000);
} catch (Exception x) {}
void valido() {
img = verde; // Imagen OK
mensaje = "Tiquete OK"; // Tiquete valido
AlertType.CONFIRMATION.playSound(TS_Online.display); // Sonido
void invalido() {
img = rojo; // Imagen OK
mensaje = "Tiquete Inv�lido"; // Tiquete valido
AlertType.ERROR.playSound(TS_Online.display); // Sonido
// thread que contiene el game loop
public void run() {
System.out.println("*** Hilo arrancado ***");
if (img == ts)
iniciar();
while (hilo) {
//System.out.println("Hilo");
// Leer codigo de barras
codigo();
// validar codigo de barras
//validar();
// Actualizar pantalla
repaint(); // Redibuja la pantalla
serviceRepaints(); // Espera que termine
try {
Thread.sleep(sleepTime);
} catch (InterruptedException e) {
System.out.println(e.toString());
protected void keyPressed(int keyCode) {
mensaje = Integer.toString(keyCode);
//int action = getGameAction(keyCode);
if ((keyCode == -8) || (keyCode == 42)) { // Si presiona borrar o *
AlertType.ERROR.playSound(TS_Online.display); // Sonido
((TS_Online)midlet).salir();
} else if (keyCode == -51 || keyCode == -52 || keyCode == -53) {
AlertType.ERROR.playSound(TS_Online.display); // Sonido
public void paint(Graphics g) {
// Borrar la pantalla
g.setColor(255,255,255);
g.fillRect (0, 0, getWidth(), getHeight());
// Coloca la imagen correspondiente
g.drawImage (img, getWidth()/2, 20, Graphics.HCENTER|Graphics.TOP);
// Poner texto
Font fuente = Font.getFont (Font.FACE_PROPORTIONAL, Font.STYLE_BOLD, Font.SIZE_MEDIUM);
g.setFont(fuente);
g.setColor(0,0,0);
g.drawString(mensaje, getWidth()/2, getHeight()/2,Graphics.TOP|Graphics.HCENTER);
g.drawString(mensaje2, getWidth()/2, 5,Graphics.TOP|Graphics.HCENTER);
} -
hi,
i've been trying change the layout of the displaytags after export, but didn't work.
For example,
i have a list of some objects that i show in the displaytags, and able the export option. But, it's necessary when i click to export to pdf or excel, the file that is generated have some texts, like a name of my client, the kind of data that exists in the table...but i didn't find that in my researches.
Somebody can help me??
thank'shi,
yes, you right....i should have post the solution, instead just said "problem solved"...but i was in a hurry to turn over my project....sorry for that.
follow the right code below:
package br.com.cienci.wisa.util;
import java.awt.Color;
import java.io.OutputStream;
import java.util.Iterator;
import javax.servlet.jsp.JspException;
import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.lang.StringUtils;
import org.displaytag.Messages;
import org.displaytag.exception.BaseNestableJspTagException;
import org.displaytag.exception.SeverityEnum;
import org.displaytag.export.BinaryExportView;
import org.displaytag.export.PdfView;
import org.displaytag.model.Column;
import org.displaytag.model.ColumnIterator;
import org.displaytag.model.HeaderCell;
import org.displaytag.model.Row;
import org.displaytag.model.RowIterator;
import org.displaytag.model.TableModel;
import org.displaytag.render.ItextTableWriter;
import org.displaytag.util.TagConstants;
import br.com.cienci.wisa.dao.DaoFactory;
import br.com.cienci.wisa.modelo.CadastroEmpresa;
import com.lowagie.text.BadElementException;
import com.lowagie.text.Cell;
import com.lowagie.text.Chunk;
import com.lowagie.text.Document;
import com.lowagie.text.Element;
import com.lowagie.text.Font;
import com.lowagie.text.FontFactory;
import com.lowagie.text.HeaderFooter;
import com.lowagie.text.Image;
import com.lowagie.text.PageSize;
import com.lowagie.text.Paragraph;
import com.lowagie.text.Phrase;
import com.lowagie.text.Rectangle;
import com.lowagie.text.Table;
import com.lowagie.text.pdf.PdfWriter;
* MyPdfView.java Criado em 18/06/2008
* @author Ciro S. Santos
* @version 1.0
* Classe responsavel ...
public class MyPdfView implements BinaryExportView {
* TableModel to render.
private TableModel model;
* export full list?
private boolean exportFull;
* include header in export?
private boolean header;
* decorate export?
private boolean decorated;
* This is the table, added as an Element to the PDF document. It contains
* all the data, needed to represent the visible table into the PDF
private Table tablePDF;
* The default font used in the document.
private Font smallFont;
* @see org.displaytag.export.ExportView#setParameters(TableModel, boolean,
* boolean, boolean)
public void setParameters(TableModel tableModel, boolean exportFullList,
boolean includeHeader, boolean decorateValues) {
this.model = tableModel;
this.exportFull = exportFullList;
this.header = includeHeader;
this.decorated = decorateValues;
* Initialize the main info holder table.
* @throws BadElementException
* for errors during table initialization
protected void initTable() throws BadElementException {
tablePDF = new Table(this.model.getNumberOfColumns());
tablePDF.setDefaultVerticalAlignment(Element.ALIGN_TOP);
tablePDF.setCellsFitPage(true);
tablePDF.setWidth(100);
tablePDF.setPadding(2);
tablePDF.setSpacing(0);
smallFont = FontFactory.getFont(FontFactory.HELVETICA, 7, Font.NORMAL,
new Color(0, 0, 0));
* @see org.displaytag.export.BaseExportView#getMimeType()
* @return "application/pdf"
public String getMimeType() {
return "application/pdf"; //$NON-NLS-1$
* The overall PDF table generator.
* @throws JspException
* for errors during value retrieving from the table model
* @throws BadElementException
* IText exception
protected void generatePDFTable() throws JspException, BadElementException {
if (this.header) {
generateHeaders();
tablePDF.endHeaders();
generateRows();
* @see org.displaytag.export.BinaryExportView#doExport(OutputStream)
public void doExport(OutputStream out) throws JspException {
try {
// Initialize the table with the appropriate number of columns
initTable();
// Initialize the Document and register it with PdfWriter listener
// and the OutputStream
Document document = new Document(PageSize.A4.rotate(), 60, 60, 40,
40);
document.addCreationDate();
HeaderFooter footer = new HeaderFooter(new Phrase(
TagConstants.EMPTY_STRING, smallFont), true);
footer.setBorder(Rectangle.NO_BORDER);
footer.setAlignment(Element.ALIGN_CENTER);
DaoFactory factory = new DaoFactory();
CadastroEmpresa ce = factory.getCadastroEmpresaDao().procura(1l);
PdfWriter.getInstance(document, out);
Image jpg = Image.getInstance("common/logo.gif");
jpg.setAlignment(Image.MIDDLE);
Font font = FontFactory.getFont(FontFactory.HELVETICA, 17, Font.BOLD, new Color(0, 0, 0));
Paragraph title = new Paragraph(new Chunk(ce.getNomeFantasia() + " - Preços para Venda", font));
title.setAlignment(Paragraph.ALIGN_CENTER);
Font font1 = FontFactory.getFont(FontFactory.HELVETICA, 17, Font.BOLD, new Color(255, 255, 255));
Paragraph subtitle = new Paragraph(new Chunk("Ta", font1));
subtitle.setAlignment(Paragraph.ALIGN_CENTER);
Paragraph date = new Paragraph(new GeraData().getData());
date.setAlignment(Paragraph.ALIGN_RIGHT);
Paragraph companyName = new Paragraph("WisaMicro");
companyName.setAlignment(Paragraph.ALIGN_LEFT);
Font font2 = FontFactory.getFont(FontFactory.HELVETICA, 9, Font.NORMAL, new Color(0, 0, 0));
Paragraph companyInfo = new Paragraph(new Chunk(ce.getEmail() + " - " + ce.getTelefone() + " " + ce.getRua() + ", " + ce.getNumero() + " - " + ce.getComplemento() + " - " + ce.getBairro() + " - " + ce.getCidade() + " - " + " - " + ce.getUf(), font2));
companyInfo.setAlignment(Paragraph.ALIGN_LEFT);
// Fill the virtual PDF table with the necessary data
generatePDFTable();
document.open();
document.setFooter(footer);
//document.add(date);
document.add(jpg);
//document.add(title);
document.add(subtitle);
//document.add(companyName);
document.add(companyInfo);
document.add(this.tablePDF);
document.close();
} catch (Exception e) {
throw new PdfGenerationException(e);
* Generates the header cells, which persist on every page of the PDF
* document.
* @throws BadElementException
* IText exception
protected void generateHeaders() throws BadElementException {
Iterator iterator = this.model.getHeaderCellList().iterator();
while (iterator.hasNext()) {
HeaderCell headerCell = (HeaderCell) iterator.next();
String columnHeader = headerCell.getTitle();
if (columnHeader == null) {
columnHeader = StringUtils.capitalize(headerCell
.getBeanPropertyName());
Cell hdrCell = getCell(columnHeader);
hdrCell.setGrayFill(0.9f);
hdrCell.setHeader(true);
tablePDF.addCell(hdrCell);
* Generates all the row cells.
* @throws JspException
* for errors during value retrieving from the table model
* @throws BadElementException
* errors while generating content
protected void generateRows() throws JspException, BadElementException {
// get the correct iterator (full or partial list according to the
// exportFull field)
RowIterator rowIterator = this.model.getRowIterator(this.exportFull);
// iterator on rows
while (rowIterator.hasNext()) {
Row row = rowIterator.next();
// iterator on columns
ColumnIterator columnIterator = row.getColumnIterator(this.model
.getHeaderCellList());
while (columnIterator.hasNext()) {
Column column = columnIterator.nextColumn();
// Get the value to be displayed for the column
Object value = column.getValue(this.decorated);
Cell cell = getCell(ObjectUtils.toString(value));
tablePDF.addCell(cell);
* Returns a formatted cell for the given value.
* @param value
* cell value
* @return Cell
* @throws BadElementException
* errors while generating content
private Cell getCell(String value) throws BadElementException {
Cell cell = new Cell(new Chunk(StringUtils.trimToEmpty(value),
smallFont));
cell.setVerticalAlignment(Element.ALIGN_TOP);
cell.setLeading(8);
return cell;
* Wraps IText-generated exceptions.
* @author Fabrizio Giustina
* @version $Revision: 1.7 $ ($Author: fgiust $)
static class PdfGenerationException extends BaseNestableJspTagException {
* D1597A17A6.
private static final long serialVersionUID = 899149338534L;
* Instantiate a new PdfGenerationException with a fixed message and the
* given cause.
* @param cause
* Previous exception
public PdfGenerationException(Throwable cause) {
super(PdfView.class,
Messages.getString("PdfView.errorexporting"), cause); //$NON-NLS-1$
* @see org.displaytag.exception.BaseNestableJspTagException#getSeverity()
public SeverityEnum getSeverity() {
return SeverityEnum.ERROR;
class myPdfChanges extends ItextTableWriter {
public myPdfChanges(Table arg0, Document arg1) {
super(arg0, arg1);
protected void writeCaption(TableModel model) throws Exception {
Document document = new Document(PageSize.A4.rotate(), 60, 60, 40, 40);
Font font = FontFactory.getFont(FontFactory.HELVETICA, 17, Font.BOLD,
new Color(0, 0, 0));
Paragraph title = new Paragraph(new Chunk("titulo", font));
title.setAlignment(Paragraph.ALIGN_CENTER);
Paragraph subtitle = new Paragraph("Subtitulo");
subtitle.setAlignment(Paragraph.ALIGN_CENTER);
Paragraph date = new Paragraph("20/03");
date.setAlignment(Paragraph.ALIGN_RIGHT);
document.add(date);
document.add(title);
document.add(subtitle);
}Regards
Edited by: cs.santos on Oct 8, 2008 6:20 AM -
The mistery of the double insertion!!!
I can�t understand why my code sometimes inserts two rows in the database with the same information.See my code:
<%!
Connection conn;
Statement stmt;
Statement stmt2;
Statement stmt3;
String url = "jdbc:postgresql://localhost/trf";
String assunto = " ";
String titulo = " ";
String subTitulo = " ";
int idSecao=0;
int posicao=0;
String inicioValidade = " ";
String fimValidade = " ";
String diaInicio,mesInicio,anoInicio=" ";
String diaFim,mesFim,anoFim=" ";
int indeterminado=0;
String conteudo = " ";
String assinatura = " ";
String email = " ";
int idConteudo=0;
String SQL;
public void OpenConnection()
try
Class.forName("org.postgresql.Driver");
catch(Exception e)
System.out.println(e.toString());
try
conn = DriverManager.getConnection(url,"postgres","postgres");
catch(Exception e)
System.out.println("N�o foi possivel carregar o banco");
} // end Openconnection
public void insertConteudo(String assunto,String titulo,String subtitulo,int idsecao,int posicao,String conteudo,String iniciovalidade,String fimvalidade,int indeterminado,String assinatura,String email)
try
stmt = conn.createStatement(); //connect the statement to the connection
SQL ="insert into conteudo(assunto,titulo,subtitulo,idsecao,posicao,conteudo,iniciovalidade,fimvalidade,indeterminado,assinatura,email) values('" + assunto + "','" + titulo + "','" + subtitulo + "'," + idsecao + "," + posicao + ",'" + conteudo + "','" + iniciovalidade + "','" + fimvalidade + "'," + indeterminado + ",'" + assinatura + "','" email "')";
stmt.executeUpdate(SQL);
catch(SQLException ee)
System.out.println(ee);
public int getMaxId()
int max = 0;
SQL=" ";
try
stmt = conn.createStatement(); //connect the statement to the connection
SQL ="select MAX(idconteudo) as MAXID from conteudo";
ResultSet results=stmt.executeQuery(SQL);
results.next();
max = results.getInt("MAXID");
max++;
catch(SQLException ee)
System.out.println(ee);
return max;
public void insertChamada(int idConteudo,String[] chamada){
int idChamada=0;
try
stmt = conn.createStatement(); //connect the statement to the connection
SQL=" ";
for(int i=0;i<chamada.length;i++){
idChamada = Integer.parseInt(chamada);
SQL="insert into chamada(idconteudo,idconteudochamada) values (" + idConteudo + "," + idChamada + ")";
stmt.executeUpdate(SQL);
catch(SQLException ee)
System.out.println(ee);
} //end InsertSecaoUsuario
%>
<%
OpenConnection();
assunto = request.getParameter("edtNome");
titulo = request.getParameter("edtNome2");
subTitulo = request.getParameter("textfield");
idSecao = Integer.parseInt(request.getParameter("select"));
posicao = Integer.parseInt(request.getParameter("select2"));
diaInicio = request.getParameter("select4");
mesInicio = request.getParameter("select5");
anoInicio = request.getParameter("select6");
diaFim = request.getParameter("select7");
mesFim = request.getParameter("select8");
anoFim = request.getParameter("select9");
indeterminado = 1; //Integer.parseInt(request.getParameter("checkbox"));
String[] chamada = request.getParameterValues("select3");
assinatura = request.getParameter("edtNome3");
email = request.getParameter("edtNome4");
inicioValidade = diaInicio+"/"+mesInicio+"/"+anoInicio;
fimValidade = diaFim+"/"+mesFim+"/"+anoFim;
conteudo = request.getParameter("corpoEfetivo");
String thing = "'";
char array[] = new char[1];
thing.getChars(0,1,array,0);
conteudo = conteudo.replace(array[0],'�');
idConteudo=getMaxId();
insertChamada(idConteudo,chamada);
insertConteudo(assunto,titulo,subTitulo,idSecao,posicao,conteudo,inicioValidade,fimValidade,indeterminado,assinatura,email);
conn.close();
stmt.close();
%>
Anyone have any idea??Anyone have any idea?? This is a web page? What prevents the user from banging on the button twice?
-
Cambiar idioma audio en netflix
Buenos días,
Tengo instalada la pp de Netflix para ver peliculas desde mi iPhone, pero sólo me permite activar o desactivar los subtitulos, pero no puedo cambiar el idioma del audio.
Alguna idea?
SaludosEl método básicamente es:
tener todo el panel frontal del VI acabado (por ejemplo si añades más controles dará error al importar)
exportar
copiar el fichero exportado con otros nombres y traducir a mano todos los textos que quieras
importar cualquiera de los ficheros creados
Al importar lo puedes hacer con Advanced > Import strings o de forma programada. De forma programada básicamente es utilizar un método: http://zone.ni.com/reference/en-XX/help/371361H-01/lvprop/vi_import_vi_strngs/. En http://forums.ni.com/t5/LabVIEW/Import-string-programmatically-to-reentrant-VI/m-p/1038915#M462362 tienes un ejemplo, aunque tiene más cosas que probablemente no necesites. El problema que tiene es que es un método que necesita detener la ejecución del VI para importar, pero es algo solventable.
Es una pena que en el tercer enlace se cortara la previsualización justo en la página que mostraba el ejemplo. Ahí lo que hice fue:
Abrir una ventana para seleccionar el idioma (main.png)
En el programa de la ventana para seleccionar el idioma cierro el main, importo el fichero traducido y lo vuelvo a ejecutar (change.png).
Adjuntos:
main.png 6 KB
change.png 16 KB -
El pack de idiomas no funciona
Buenas noches, me descargue el pack de idiomas de adobe y cuando lo instalo no puedo poner subtitulo en español, voy a extensiones pero no se le puede hacer clic podrían ayudarme por favor
Google translate
Good evening, I download the language pack adobe and when I install it I can not put subtitle in Spanish, go to extensions but you can not click could help me please
What program, and I will move your message to that forum -
Falla de pantalla sony bravia KDL 40BX427
Quiero contarles mi caso sobre este televisor Sony Bravia KDL-40Bx427 comprado en Almacenes Exito de Envigado en el año 2011 esto es en Colombia.El televisor presenta desde hace 3 o 4 meses una franja azul horizontal de la mitad de la pantalla hacia el borde inferior, antes de presentarse esa falla primero se veian unas lineas horizontales muy juntas en toda la pantalla pero no se notaban a metro y medio de distancia, la franja azul que comente antes cambia de color a fuccia y donde aparecen subtitulos en los canales se quedan grabados como fantasmas; yo consulte en internet sobre este problema y me di cuenta que muchas personas con televisores de la misma referencia o similar de marca sony bravia, también tenían ese problema y que era un defecto de fabrica por parte de sony, incluso hay videos en youtube de televisores con ese problema.Lo que yo quiero que me colaboren es que me digan si ese problema se puede reparar, si ustedes tienen el conocimiento de estas fallas y necesito porfavor que me respondan que procedimiento tengo que hacer o si ustedes pueden enviarme por escrito asegurando que esta linea salio defectuosa y que mi tv entra en esa linea aunque ya no tenga garantía, para yo hacer el respectivo reclamo. Muchas gracias por su atención y espero una solucion y pronta respuesta.
Buen día artman38,
Gracias por su mensaje. A partir de la información que a proporcionado de su modelo KDL40BX427, le sugerimos intentar los pasos disponibles a través de los siguientes enlaces ya que no tenemos reporte con respecto al problema descrito ni garantía extendida aplicable con su modelo por parte de nuestro centro de servicio:
https://la.es.kb.sony.com/app/answers/detail/a_id/49509/p/92250%2C92740%2C93163/c/94850%2C94853/kw/colores
https://la.es.kb.sony.com/app/answers/detail/a_id/4202/related/1
Si el problema persistes será necesario contactarse con nuestro centro de servicio para verificar las opciones de reparación fuera y dentro de la garantía de fabrica si se compro una extendida. Para mayor información visite el siguiente enlace:
http://www.sony-latin.com/corporate/SOLA/servicioysoporte/servicio.html
Si te fue útil esta solución, favor dar clic al botón que dice ''Aceptar como Solución''.
-
Hi all,
>
I'm having a problem that is very strange. When I create a XML
Component with urls to both xml and xsl documents, and try to run it,
the browser says page not found.
I've made a few experiences and there are a few peculiar behaviers such
as if the xsl file only references 3 tags (titulo,autor,subtitulo) it
works fine:
<xsl:for-each select="CONTEUDO/NOTICIA">
<xsl:value-of select="TITULO"/>
> <xsl:value-of select="AUTOR"/>
> <xsl:value-of select="SUBTITULO"/><p/>
</xsl:for-each>
if I reference 4 tags the error apears.... (the xml file size is 104 k)
My platform is Windows 2000, my database is 8173 and 9ias 10222a.
Any ideas ???
Thanx in advance
SusanaSusanna,
Is this related to the XML provider configuration file? Or is this just an XML file you are trying to run in general? If this is just a general XML file, you may want to try posting your question to the 9iAS general form (Products > Application Server > General).
Thanks,
James -
Does anyone know how to generate a html file from code in JSP without using a form, as i have one of those already. I don't want this page to appear, just exist.
ThanksYou can do like this:
File outputFile = new File("Publicacao.html");
FileWriter escrever = new FileWriter(outputFile);
escrever.write("<center><h1>Assunto:" + assunto + "</h1></center><br><center><h2>Titulo:" + titulo +"</h2></center><br><center><h3>Sub Titulo:"+subTitulo+"</h3></center><br>"+ conteudo +"<br>");
escrever.close();
Maybe you are looking for
-
Bluetooth Data........
Hello All, I have a problem,In My N72, I have 1 gb memory Card and there are 456Mb free. But I'm not able to transfer data by bluetooth. Please tell me what is the problem. I think that what i had already transfered is occupying all device memory. An
-
R/3 Source system creation for BW
Hi Guru's, How to create R/3 Source system in BW3.5(Version:IDES) of logical system name- T90CLNT090. Please tell me what shud be the IP Address and Login details (Userid= ALE_MASTER). If possible plz give me the Password for user ALE_MASTER. Points
-
Archive not applying on dr database
Hi All, Archive log are transferring from primary db to standby db.but archive are not applying on dr database. Below alert log of dr database ORA-16037: user requested cancel of managed recovery operation Fri Jan 14 17:05:40 2011 MRP0: Background Me
-
Error message with network settings when downloading latest itunes
Trying to download latest itunes onto my iphone to update my apps, but keep getting this error message Network connection timed out Make sure your network settings are correct and your network connection is active What do I need to do, is this a sett
-
How can I remove asm and ocr installation in AIX?
Hi, I try to install single instance with using ASM in AIX. But I did not make successfully. Now I want to remove ASM and OCR installation then I will plan to make new clear installation. How can I remove asm and ocr ?? Or How can I control my removi