Javafx Checkbox以Link作为标签

时间:2016-11-24 14:06:36

标签: java javafx

我想创建一个以链接作为标签的Javafx复选框。单击链接时,它将打开链接,但单击该复选框时,将选中该框。这可能与标准的Javafx Checkbox有关吗?

1 个答案:

答案 0 :(得分:0)

试一试:

<?php
 $result = $conn->query("SELECT * FROM adoption");

 if($result->num_rows !=NULL){
     while($rows = $result->fetch_assoc())
     {

         $AAnimalName = $rows['AAnimalName'];
         $Abreed = $rows['Abreed'];
         $Asex = $rows['Asex'];
         $Acolor = $rows['Acolor'];
         $image = $rows ['image'];
         $a_id = $rows['a_id'];
         $image_location = "admin/function/upload/".$image; ?>
         <div class="container-custom1">
         <?php
         if(file_exists($image_location )) {
     echo "<a href=\"newpage.php?animal_ID=".$row['a_id']."\"><img src=\"".$image_location."\" width =\"248\" height=\"190\" class=\"age1\" title=\"\"><a/>";
         }
     else {
     echo '<a href="newpage.php?animal_ID='.$row['a_id'].'<img src="admin/images/admin_logo.png" width="248" height="190" class="age1" title></a>'; } ?>

         <?php echo "<i><h1 class='junction'><a style='cursor:pointer' class='junction'>".$AAnimalName."</a></h1></i><button type='button'
 id='button2' data-toggle='modal' data-target='#contact'
 data-original-title>Adopt</button></button>"."<br>".$Asex." /
 ".$Abreed."<br>".$Acolor."<br>"."ID#: ".$a_id;?></div>

 <?php

     } }   

 ?>