A three-dimensional (3D) printer is a powerful tool that can be used to enhance personalized medicine. A fused deposition modeling (FDM) 3D printer can fabricate 3D objects with different internal structures that provides the opportunity to introduce one or more specific functionalities. In this study, zero-order sustained-release floating tablet was fabricated using FDM 3D printer. Filaments comprising poorly water-soluble weak base drug, itraconazole (ITZ) and polymers (hydroxypropyl cellulose and polyvinylpyrrolidone) were prepared, and tablets with a hollow structure and different outside shell thicknesses were fabricated. In the 3D printed tablets, ITZ existed as an amorphous state and its solubility improved markedly. As the outside shell thickness of the tablet increased, drug release was delayed and floating time was prolonged. In the tablets with 0.5 mm of the upper and bottom layer thickness and 1.5 mm of the side layer thickness, holes were not formed in the tablets during the dissolution test, and the tablets floated for a long period (540 min) and showed nearly zero-order drug release for 720 min. These findings may be useful for improving the bioavailability of several drugs by effective absorption from the upper small intestine, with floating gastric retention system.