Skip to content

Instantly share code, notes, and snippets.

View vincenzopalazzo's full-sized avatar
:octocat:
The commit can contain poetry

Vincenzo Palazzo vincenzopalazzo

:octocat:
The commit can contain poetry
View GitHub Profile
@vincenzopalazzo
vincenzopalazzo / SwingFXWebView.java
Created February 19, 2019 16:03 — forked from anjackson/SwingFXWebView.java
Embedding a JavaFX WebView in a Swing panel.
import com.sun.javafx.application.PlatformImpl;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javafx.application.Platform;
import javafx.collections.ObservableList;
import javafx.embed.swing.JFXPanel;
import javafx.scene.Group;
import javafx.scene.Node;
@vincenzopalazzo
vincenzopalazzo / ListUIDefaultsKeys.java
Created May 28, 2019 22:39 — forked from itzg/ListUIDefaultsKeys.java
Java Swing UIDefaults keys
import java.util.Enumeration;
import java.util.SortedSet;
import java.util.TreeSet;
import javax.swing.UIDefaults;
import javax.swing.UIManager;
public class ListUIDefaultsKeys {
public static void main(String args[]) throws Exception {
UIManager.LookAndFeelInfo looks[] = UIManager
@vincenzopalazzo
vincenzopalazzo / mining-bitcoin-ends-year.py
Last active September 6, 2019 18:59
This code calculate the year in which the bitcoin mining ends
def calculatesYear():
numbersBlock = 0
blockToHeaving = 210000
starYear = 2008
buildBitcoin = 50
print("-------- Value to start ----------")
print("Num. block: ", numbersBlock)
print("Num. Block: ", blockToHeaving)
print("Miner build bitcoin: ", buildBitcoin)
@vincenzopalazzo
vincenzopalazzo / GUIBitcoinCoreAmmountAddress.py
Created September 6, 2019 21:22
Simple Console gui bitcoin core for calculate the amount on the an address
from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
rpc_user = 'vincent'
rpc_password = 'vincent'
rpc_connection = AuthServiceProxy("http://%s:%s@127.0.0.1:18332"%(rpc_user, rpc_password))
def createNewAddress():
address = rpc_connection.getnewaddress();
@vincenzopalazzo
vincenzopalazzo / CHANGELOG-material-ui-swing-pre-release6.0.md
Last active February 24, 2020 12:42
Material-UI-Swing pre-release 6.0 description with material table style restored to version 1.1.1_beta.

Material-UI-Swing pre-release 6.0

Introduction

This version includes the complete refactoring to JButton and restored all change inside the JTable (the code of the table UI is equal to code the version 1.1.1_beta material-ui-swing version).

MaterialButtonUI Refactoring

@vincenzopalazzo
vincenzopalazzo / CHANGELOG-material-ui-swing-pre-release6.1.md
Last active March 8, 2020 20:12
Material-UI-Swing pre-release 6.1 description with material table style refactored.

Material-UI-Swing pre-release 6.1

Introduction

This version includes the complete refactoring to JButton and restored all change inside the JTable (the code of the table UI is equal to code the version 1.1.1_beta material-ui-swing version).

@vincenzopalazzo
vincenzopalazzo / CHANGELOG.md
Last active March 21, 2020 23:23
JMARS_WITH_MATERIAL-UI_SWING_TABLE_CHANGELOG.md

Change log inside JMARS Beta 5.0.15 with material-ui-swing 1.1.1 official

JTable

This change require this other change

Inside the class ThemeTable you must change the configuration from this code

 UIManager.put("Table.alternateRowColor", this.isAlternaterowcolor());
@vincenzopalazzo
vincenzopalazzo / clean-docker.sh
Created April 4, 2020 16:11
UNIX script to clean docker after traning or test IMPORTANT this script clean all container and images
#!/bin/bash
#linux Script to clean docker containers and images
$RUN_WITH_SUDO=1 #Insert 0if you have docker with user permission
if [! RUN_WITH_SUDO]
then
for NAME in $(sudo docker ps -a)
do
@vincenzopalazzo
vincenzopalazzo / FONT_DOC.md
Last active April 7, 2020 21:07
The Document import inside the change inside JMars to load the personal font with the library

Load Personal Font with material-ui-swing

In the new version of the library, so material-ui-swing-1.1.1 (0.3) is possible load a personal font with the library directly in the clien application such as JMars 5.

The building the font with material library is very fast because the instance of the font is the same, the class MaterialFontsFactory

@vincenzopalazzo
vincenzopalazzo / LinkLabel_DOC.md
Last active April 16, 2020 15:23
Integration LinkLabel in JMAR

Integration LinkLabel with JMars

Introduction

Inside this document isn't explane how the library LinkLabelUI works but contains only the code to integrate with with JMars (very easy 😄 )

Copy and Past all this class with the UrlLabel class in JMars

package edu.asu.jmars.swing;